![]() |
Adding Price into Product box on Sub-category pge
Hi There,
Just wondering if you can help me out. I have spent a couple of hours in the forum and can not find what I need. I would like to add the price to the product boxes that appear on the sub-category pages. Here is a page that has the product boxes: http://www.designerdogwear.com/Dog_Hat.html I need to know which template to update and what to include. I can then play from there. Thanks Justin |
Re: Adding Price into Product box on Sub-category pge
Are you looking to add prices to the Category images that are displayed? You cannot add prices to these as the categories are the only images on the page you posted.
|
Re: Adding Price into Product box on Sub-category pge
Please take another look. I think the images on that page are product images not category images. I created each one as a product, not a category - http://www.designerdogwear.com/Dog_Hat.html.
|
Re: Adding Price into Product box on Sub-category pge
ok...sorry I missed that one. They looked like categories and I never clicked on one.
Well since your using multi-colum product listing, you are using the products_t.tpl unless you edited your products.tpl to reformat to multi-colums. That template by default included pricing. the file is located @ skin1/customer/main/products_t.tpl Did you edit that file? |
Re: Adding Price into Product box on Sub-category pge
I had a designer do some work for me and I was hoping to do this work myself. Hoping to save some money, so in the template I am not sure what needs to be there to include the price.
|
Re: Adding Price into Product box on Sub-category pge
in your skin1_original folder is the base file most likely and it will have the original code for that template. From there you can see how the included price was used. Copy and paste where/how you want.
Did you set and install the X-Cart or did your designer do it for you? |
Re: Adding Price into Product box on Sub-category pge
I had a friend set up a test site so we could redesign it and then I had the designer move it for me.
Any ideas on what I am looking for in the original code? |
Re: Adding Price into Product box on Sub-category pge
This is the base pricing section of the code that is used for products_t.tpl....
{if $products[product].product_type ne "C"} <br /> <br /> {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $config.General.unlimited_products ne "Y" && ($products[product].avail le 0 or $products[product].avail lt $products[product].min_amount) && $products[product].variantid} {elseif $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} <font class="MarketPrice">{$lng.lbl_market_price}: <s> {include file="currency.tpl" value=$products[product].list_price} </s></font><br /> {/if} {/if} <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</font><br /><font class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</font>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} <font class="ProductPrice">{$lng.lbl_enter_your_price}</font> {/if} {/if} |
Re: Adding Price into Product box on Sub-category pge
Wondering if you can help me out? Looking at the file I can not see what to do to bring back the price. Guess I have no experience with Smart Tags yet.
Her it is: {if $products[product].product_type ne "C"} {* {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $config.General.unlimited_products ne "Y" && ($products[product].avail le 0 or $products[product].avail lt $products[product].min_amount) && $products[product].variantid} {elseif $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} {$lng.lbl_market_price}: {include file="currency.tpl" value=$products[product].list_price} {/if} {/if} {$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes} {include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} {$lng.lbl_enter_your_price} {/if} {/if} {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0} {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} {/if*} {*** Uncomment it if you need 'Buy Now' button *** {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} *** Uncomment it if you need 'Buy Now' button ***} {/if} |
Re: Adding Price into Product box on Sub-category pge
are you using the html catalog?
|
Re: Adding Price into Product box on Sub-category pge
Yes I am, however I was looking at the template as previously advised when I captured that code.
|
Re: Adding Price into Product box on Sub-category pge
Gimmie a couple of days to take a deeper look...buried til the weekend
|
Re: Adding Price into Product box on Sub-category pge
make a back up. The remove the red highlighted code. The price has been commented out. You should remove the red bracket and asterisk from the top portion and the astrisk from the closing {/if*} at the bottom.
{if $products[product].product_type ne "C"} {* {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $config.General.unlimited_products ne "Y" && ($products[product].avail le 0 or $products[product].avail lt $products[product].min_amount) && $products[product].variantid} {elseif $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} {$lng.lbl_market_price}: {include file="currency.tpl" value=$products[product].list_price} {/if} {/if} {$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes} {include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} {$lng.lbl_enter_your_price} {/if} {/if} {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0} {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} {/if*} {*** Uncomment it if you need 'Buy Now' button *** {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} *** Uncomment it if you need 'Buy Now' button ***} {/if} |
Re: Adding Price into Product box on Sub-category pge
Thanks for that.
I have now also found where to change the Our Price: to Starting From: Many thanks! Justin P.S. if you have any ideas for improvements let me know - www.designerdogwear.com |
All times are GMT -8. The time now is 12:02 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.