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)
-   -   Save Money Label (https://forum.x-cart.com/showthread.php?t=45813)

bss 02-24-2009 08:08 PM

Save Money Label
 
I don't see Save Money Label on product pages. I have checked "The dynamic updating of the Save Money label depending on the selected product options is enabled" option "ON" in Product Options. I am running 4.2.0.

Here is the weird part - Save Money logo does appear on product pages only if the selling Price is greater than the List Price. There is just a % symbol under SAVE.

Any thoughts? Has anyone else experienced this problem?

Thanks!

balinor 02-25-2009 03:33 AM

Re: Save Money Label
 
Moving to the 4.2 forum - I believe there is already a thread on this topic.

Victor D 02-25-2009 03:51 AM

Re: Save Money Label
 
skin1/customer/main/product.tpl
you should change
Code:

{if $product.appearance.market_price_discount} style="display: none;"{/if}



to
Code:

{if not $product.appearance.market_price_discount} style="display: none;"{/if}


http://forum.x-cart.com/showpost.php?p=245664&postcount=38

bss 02-25-2009 06:05 AM

Re: Save Money Label
 
Thanks Victor. I appreciate your help.

stizz 02-27-2009 12:15 AM

Re: Save Money Label
 
Hey guys,

Is there a way to change the word SAVE in the savemoneylabels? Been searching in the language files as well as in product.tpl, but couldn't find it.
Thanks in advance

Greetings from Holland,
Yorick
Stizz

Victor D 02-27-2009 12:28 AM

Re: Save Money Label
 
this word is typed on the image so you should correct skin1/images/save_money.gif

JWait 10-14-2009 02:50 PM

Re: Save Money Label
 
How about changing it from Save percent to display it as Save dollars in 4.2.x?

sarvasoap 03-07-2010 05:18 PM

Re: Save Money Label
 
Hello - I'm running 4.3.x and my Save Money Label is MIA. I looked in product.tpl and can't find the above string. (of course, this could be why it isn't working...) Does this work differently in 4.3, and can someone give me a hint? Thanks so much.

gizmo 03-07-2010 05:31 PM

Re: Save Money Label
 
Quote:

Originally Posted by sarvasoap
Hello - I'm running 4.3.x and my Save Money Label is MIA.

What do you mean?

Are you asking why your image is not appearing? when you have save x amount from your product details?

sarvasoap 03-07-2010 05:43 PM

Re: Save Money Label
 
Yes, gizmo, that's correct. The Save Money Label does not appear for products where the sales price is lower than the list price.

Example

The strange thing is, up until about two weeks ago, it was working fine. I have no idea what changed. None at all.

gizmo 03-07-2010 05:51 PM

Re: Save Money Label
 
Yea I had a look at your site earlier.

You need to check as I see you have a custom skin, that within
customer/main/product_details.tpl

You do have this:

{if $product.appearance.has_market_price && $product.appearance.market_price_discount gt 0}
<td align="right" valign="top">
<div class="save-percent-container">
<div class="save" id="save_percent_box">
<span id="save_percent">{$product.appearance.market_pric e_discount}</span>%
</div>
</div>
</td>
{/if}

The only reason I suppose it would stop working is some edits somewhere on your templates, or maybe some custom mod maybe.

sarvasoap 03-07-2010 06:02 PM

Re: Save Money Label
 
That code is indeed present in product_details. Well then, I'm not sure what to do!

I do have a couple mods, but the disappearance of the Save Money Label doesn't correspond with any of the mods, nor the custom skin. Wow... hmm. Back to the drawing board.

Thank you so much for your time. Appreciate it!

gizmo 03-07-2010 06:07 PM

Re: Save Money Label
 
Well if it worked and then didn't and a mod was installed it could be something to do with a mod, maybe within the database or code elsewhere..

Can I asked when you noticed it stopped appearing?
Help to pinpoint what went wrong 8O

sarvasoap 03-07-2010 06:22 PM

Re: Save Money Label
 
I've been sitting here pondering since last replying.

I am a sole proprietor and definitely not a coder, but a close friend is a developer. Paid a local designer for the custom skin, but my friend has made a couple changes for other reasons. (shoestring budget here...) There is a change he made to same file. I have some items that need to be priced at 0.00 for purposes of X-Configurator, but wanted the resultant empty text box ("enter your price") to instead show as "Not sold individually". Example here.

Now, that's still got a whole other set of issues surrounding it (better described in a separate post that I can dig up on request), and we still don't have it solved. I am considering hiring an X-cart expert (ahem!) to take care of it for me rather than burdening my friend.

But upon inspecting product_details.tpl closer, I do find that this is indeed the file in which he inserted a couple lines of code. I'd take them out to see if it solves the save money label, but (a) I'm not 100% sure what to remove and (b) it would cause other problems.

I hope pasting the below section of code is helpful - maybe you can get a feel for what is going on.

{* 2010-03-04 JWP - added this check to prevent price from showing for half bars *}
{if $product.price gt 0}
<td class="property-value" valign="top" colspan="2">
{if $product.taxed_price ne 0 || $variant_price_no_empty}

<span class="product-price-value">{include file="currency.tpl" value=$product.taxed_price tag_id="product_price"}</span>
<span class="product-market-price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price tag_id="product_alt_price"}</span>
{if $product.taxes}
<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}
{/if}
{else}
<input type="text" size="7" name="price" />
{/if}
</td>
{else}
{* 2010-03-04 JWP - added this check to prevent price from showing for half bars *}
<td class="property-value" valign="top" colspan="2">not sold individually</td>
{/if}
</tr>



That appears in lines 83-101 of same file.

I simply didn't think to notice if the save money label disappeared after this was inserted, so I don't know.

gizmo 03-07-2010 06:32 PM

Re: Save Money Label
 
Why don't you back up the file you have now, then go to webmaster mode and restore original (For the purpose of just to see if it appears)

If it does you can now safely say that the modified template has errors, I cannot see the whole template to see what's happening.

But my suggestion is a start.
Now I'm off to bed it's 3:30 here in UK and was up watching Oscars.

sarvasoap 03-07-2010 06:47 PM

Re: Save Money Label
 
You have been more than kind, thank you! I'll try your suggestion. I thought it was quite late in the UK! Thanks again.


All times are GMT -8. The time now is 09:25 PM.

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