X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Price from (https://forum.x-cart.com/showthread.php?t=56441)

Spiceworld 11-07-2010 04:47 AM

Price from
 
Hi

Am looking for the code required for showing the "Our Price from" under variants.

Have found it while doing a search for every other version :? but can't get any working for 4.4.

Any help would be great.

Cheers

Richard

Spiceworld 11-09-2010 05:40 AM

Re: Price from
 
Anyone pppppppppppplease

peddler 11-09-2010 12:15 PM

Re: Price from
 
Alrighty then. Here's anyone reporting for duty!

I don't use variants, so I'll be less help than wet matches at a cookout, but I'll try. :-)

I can't find anything that relates to "Our Price from". I searched the language variables; I even did a full search of all files in 4.1.8 and 4.4.1.

Maybe if you explained what you're looking for a little more, or maybe post a link or two where you, in your words, "found it while doing a search for every other version".

I'll check back later. :wink:

Spiceworld 11-09-2010 11:04 PM

Re: Price from
 
Welcome back Anyone :lol:

The links that i am talking about is http://forum.x-cart.com/showthread.php?t=54969&highlight=amount+products

and

http://forum.x-cart.com/showthread.php?t=47645&highlight=our+price+from

but can't get either to work.

Cheers

amy2203 11-10-2010 12:05 AM

Re: Price from
 
have yu found the template used to display the price section? I've heard that the 4.4 templates are very different from previous versions so I can't really help find it, have you used webmaster mode to find it?

then search through the template to find any reference to price, you may have to do this manually as it may be a language variable with who knows what name, but if you're in the right template it shouldn't be too bad,

then look at those previous posts to see what they changed,

hth

peddler 11-10-2010 03:36 PM

Re: Price from
 
The templates involved are product_details.tpl and products_list.tpl, but their location depends upon which template set you're using.

They are located in the customer/main folder of the template set, OR, one is located there and the other is located in the skin/common_files/customer/main folder. Clear as mud?

Warning! There's a product_details.tpl located in the skin/common_files/main folder and it is for the Admin side. You don't wanna mess with that one. :wink:

If'n you is looking for some detailed info on how to hack that code you found to work with the templates, I'm back to being an anyone and can't help ya. Sorry.

Spiceworld 11-10-2010 10:54 PM

Re: Price from
 
Ok cheers for the replies.

I have tried changing those files with various different combinations but no luck yet.

I can put the following line in where it needs to go:

Code:

<span class="price">{if $product.is_variants}{$lng.lbl_priced_from}:{else}{$lng.lbl_our_price}:{/if}</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span>


like this:

Code:


<div class="price-row{if $active_modules.Special_Offers ne "" and $product.use_special_price ne ""} special-price-row{/if}">
                        <span class="price">{if $product.is_variants}{$lng.lbl_priced_from}:{else}{$lng.lbl_our_price}:{/if}</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span>
                  <span class="price">{$lng.lbl_our_price}:</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span>
                  <span class="market-price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span>
                </div>



and that gives me the right look apart from it being on the left when the original is in the centre, but then i try and take out the same code that was doubled up in there but it wipes the whole page out so no product column is there at all.

I'll keep trying and will hopefully get there.

Cheers all

chapel 11-22-2010 07:19 AM

Re: Price from
 
Did you get this working? I am looking for the same thing with no luck.

Spiceworld 11-22-2010 10:57 AM

Re: Price from
 
Yes i did but i will have to look it up as i can't remember what i did now. Will get back as soon as i can look it up.

chapel 11-22-2010 08:17 PM

Re: Price from
 
Thanks I look forward to it.


All times are GMT -8. The time now is 11:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.