WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • WYSIWYG Editor: Link URL with Item Price as parameter
  • Print
Pages: [1]   Go Down

Author Topic: WYSIWYG Editor: Link URL with Item Price as parameter  (Read 4375 times)

Offline gearup

  • Posts: 82
WYSIWYG Editor: Link URL with Item Price as parameter
« on: November 18, 2012, 10:48:05 PM »
Hi,

How to format a URL string so that the parameter (last value) can be added as a data item name.

For example, I want to use a web currency converter to show GBP (£) price of an item without needing to manage multiple prices/currencies within the shop module.

such as in the link editor the URL entry would be,

www.x-rates.com/calculator/?from=EUR&to=GBP&amount=57.95

what I want is the 57.95 to be replaced by some code to dynamically get the item price.

I would rather not include explicit item price values in the URL as a change in item price would no longer be a simple task although it does work ok like that (right now) for the test products.

This links are located in the "Add New Product, Brief description" editor section and display on the web page like,



Regards,

ps. I was looking to implement an easy and simple solution so I don't mind if someone suggests an alternative approach :)
Logged
Tomorrow is a day we can look forward to but will never see.

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: WYSIWYG Editor: Link URL with Item Price as parameter
« Reply #1 on: November 18, 2012, 11:07:52 PM »
In your Bakery page settings you can use:

Code: [Select]
<a href="http://www.x-rates.com/calculator/?from=EUR&to=GBP&amount=[PRICE]" target="_blank">PND</a>
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • WYSIWYG Editor: Link URL with Item Price as parameter
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2