![]() |
HTML Simple Link With Price Displayed
Hello,
I have some long pages for my product content and I would like to have have an add to cart link displaying the price with the link right under the heading of each page. I have looked at the HTML simple link that is generated via Admin but I don't know how to get the price to display. I would prefer to have the template edited (so it will be automatically generated) or I can add the link manually if that is required. Thanks, Randal |
Why not just put a copy of the price and add to cart code at the top?
|
Thanks for your response on this issue.
I can certainly do what you suggest but if there are price changes then I will have to manually make the price changes on each page I have used that method on. I found the following include statement in one of the forum posts {include file="currency.tpl" value=$product.list_price} This provides the price but it places at the bottom of the product page rather than at the top. However, when I insert the HTML simple link it places it where I want it. Consequently, I thought if I were to modify the syntax of the HTML simple link to include the product price then that would be the best method. I have over 600 products that I need this capability for. I am on an ASP system now and I do this now by placing a link on each page. You can see an example at http://www.theherbsplace.com/thaigo.asp Currently, I have this block of code at the top and bottom of each page - Thai-Go Twin Pack (2-25 fl. oz.) - Stock #4095-1 Retail - $74.95б═б═Buy Now б═б═Members - $49.95 The 74.95 and 49.95 are generated by the database using ASP. That is all I am asking XCart to do too. Hopefully, someone can point me in the right direction. Randal |
No, what I mean is copy the code that generates the database driven price and the add to cart button so that you have a copy on the bottom and the top of the page.
|
Thanks for the clarification, that is what I am looking for. However, I haven't been able to find the code.
The HTML Simple link gives this code: <NOBR><FONT class="FormButton">Add to cart http://theherbsplace.com.whsites.net/shop/skin1/images/go.gif</FONT></NOBR> Looking at the code I mentioned before: {include file="currency.tpl" value=$product.list_price} I am not sure how to include it. I tried this: <NOBR>Current Price is {include file="currency.tpl" value=$product.list_price} <FONT class="FormButton">Add to cart http://theherbsplace.com.whsites.net/shop/skin1/images/go.gif</FONT></NOBR> All I get is the words "Current Price is" then I get the actual include statement text. I looked at the smarty forum and the smarty crash course but don't understand why it isn't executing the include statement. I looked at the Advanced HTML link and I really need to shorten it because it takes up so much space, especially at the top of the screen. That is why I just wanted a simple add to cart link with the price, if at all possible. I really appreciate your taking the time to help. |
I have tried the HTML Advanced link and it only works if there are no price changes.
I really need some way to use any link or code at the top of the page that shows the price. I made the change that will permit javascript in the product description page and inserted the HTML advanced link but testing the price change ability, the bottom link changes fine but the top link stays the original amount. You mentioned some piece of code and I guess that is what I am missing. Please tell me what you mean. Please help this is a definite need. Thanks! Randal |
All times are GMT -8. The time now is 01:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.