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

Common sense Product Layout modification (4.3)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 01-30-2010, 04:58 PM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Common sense Product Layout modification (4.3)

Did you noticed that the "SAVE" image appears as o% even when market price = your price?
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #12  
Old 01-30-2010, 09:11 PM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Common sense Product Layout modification (4.3)

If market price = your price , leave market price field blank
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #13  
Old 01-31-2010, 08:41 AM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Common sense Product Layout modification (4.3)

Maybe i did not explain my self clearly...Sure i leave it blank BUT the image of discount, that colored star still appears on the product page with the 0 %. It should not be there if you give no discount or maybe i am wrong ?
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #14  
Old 01-31-2010, 09:48 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Common sense Product Layout modification (4.3)

OMG , tam10, thx for pointing this problem out to me!!

It appears I made final corrections to code in product_details.tpl directly in my x-cart template editor, yet provided the forum with the piece of code from the Notepad I used to make the adjustments. This explains how I could left out that vital IF statement you pointed out for me so kindly

To get the star work properly, please find next code in your /customer/main/product_details.tpl :

Code:
<td rowspan="3" align="right" valign="top"> <div class="save-percent-container"> <div class="save" id="save_percent_box"> <span id="save_percent">{$product.appearance.market_price_discount}</span>% </div> </div></td>


and replace it with :

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


P.S: I am going to update the original post with correct code right after this message. (DONE)

.
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #15  
Old 01-31-2010, 10:10 AM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Common sense Product Layout modification (4.3)

Nice Job

Now... for some reason i get the SKU on customer side -product page BUT not on all pages. I followed your instruction to eliminate the SKU but as i said -work only for some pages and for other not. Any thoughts?
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #16  
Old 01-31-2010, 10:22 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Common sense Product Layout modification (4.3)

Now this one is strange..

Try clearing templates cache first, also you may want to try to delete SKU variables in template rather then edit it out like I suggested earlier. To be more specific:

1) Go to http://yourdomain.com/cleanup.php . If it didn't solve the case, try:

2) In your /customer/main/product_details.tpl find :

Code:
<td class="property-name">{*{$lng.lbl_sku}*}</td> <td class="property-value" id="product_code">{*{$product.productcode|escape}*}</td>

and replace with:

Code:
<td class="property-name"></td> <td class="property-value" id="product_code"></td>

Please let me know if it worked for you
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #17  
Old 01-31-2010, 10:36 AM
  tam10's Avatar 
tam10 tam10 is offline
 

eXpert
  
Join Date: Mar 2007
Posts: 252
 

Default Re: Common sense Product Layout modification (4.3)

Nothing changed.

And yes - many strange things in my xcart.
__________________
Tammy
x-cart gold + 4.7.2
x-cart 5.2.10

Reply With Quote
  #18  
Old 01-31-2010, 12:45 PM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Common sense Product Layout modification (4.3)

Ok, the reason SKU showing on some pages and not on others is because I initially didn't count on paroduct variant's SKUs.

To remove all SKUs from customer side (including product variants one), right after you initially modified your /customer/main/product_details.tpl , find :

Code:
<td class="property-name">{$lng.lbl_sku}</td> <td class="property-value" id="product_code">{$product.productcode|escape}</td>

and replace it with :

Code:
<td class="property-name">{* {$lng.lbl_sku} *}</td> <td class="property-value" {* id="product_code" *}>{* {$product.productcode|escape} *}</td>

Enjoy
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #19  
Old 08-11-2010, 01:31 PM
 
aitek aitek is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 77
 

Default Re: Common sense Product Layout modification (4.3)

Is there a work around for this in the fashion_mosaic skin? This would help me out as I totally am looking to do this. I looked in product_details.tpl but it is completely different ;(

Whenever I try and make max image size in the admin tool larger it just kicks my text out to the right of the page.
__________________
X-Cart DB Version: 4.4.4 GOLD Addons:Feature Comparison (enabled);Magnifier (enabled); Product Configurator (enabled); Special Offers (enabled); Survey (enabled); XAffiliate (enabled);
Reply With Quote
  #20  
Old 08-16-2010, 05:37 PM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Smile Re: Common sense Product Layout modification (4.3)

Quote:
Originally Posted by aitek
Is there a work around for this in the fashion_mosaic skin? This would help me out as I totally am looking to do this. I looked in product_details.tpl but it is completely different ;(

Whenever I try and make max image size in the admin tool larger it just kicks my text out to the right of the page.


Oh... I would love to know the answer to this as well.

And, how would you go ahead and put the price, add to cart/wishlist buttons, etc., down below the description of the product? I'd like my layout to be:

PRODUCT IMAGE
PRODUCT DESCRIPTION
OTHER PRODUCT DETAILS (cost, add to cart, etc.)

Thanks to acidon for this great post!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:18 PM.

   

 
X-Cart forums © 2001-2020