Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

HTML Simple Link With Price Displayed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-14-2005, 12:02 PM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default 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
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #2  
Old 11-14-2005, 06:14 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Why not just put a copy of the price and add to cart code at the top?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-15-2005, 05:23 AM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default

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
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #4  
Old 11-15-2005, 05:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-15-2005, 06:52 AM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default

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.
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #6  
Old 11-17-2005, 12:32 PM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default

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
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:54 AM.

   

 
X-Cart forums © 2001-2020