Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: hiding attribute comments in site
PostPosted: Tue Jul 12, 2011 8:32 pm 
Offline
CRE Newbie
User avatar

Joined: Mon Dec 15, 2008 10:10 pm
Posts: 11
Pro 6.4.1a
cre63_ats template

Looking for a way to hide the attribute comments on site (attributes are applied to parent products and get repeated for sub products), without emptying the text field in the admin. Thanks in advance.


Top
 Profile  
 
 Post subject: Re: hiding attribute comments in site
PostPosted: Tue Jul 12, 2011 9:25 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
You mean don't show the attributes on subs or on the parent?

Code:
include(DIR_WS_MODULES . 'product_info/product_attributes.php');

is the line to look for and comment out, either in the template's products_info... tpl.php page (parent) or the /includes/modules/product_info/subproducts_listing.php file for subs.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: hiding attribute comments in site
PostPosted: Tue Jul 12, 2011 10:09 pm 
Offline
CRE Newbie
User avatar

Joined: Mon Dec 15, 2008 10:10 pm
Posts: 11
Hi, no not quite what I had in mind... When you build a new product attribute (option/value/attribute) during the "option" phase, you are given the opportunity to add a comment to the option. I need those comments to figure out which "choose your leather" goes to which product line (furniture site). However, underneath the attributes on the sub products listing (on the site, not the back end) the comment "Nail-head Trim Leather Furniture" shows up underneath each label. I need a way to hide my comments from the customers.


Top
 Profile  
 
 Post subject: Re: hiding attribute comments in site
PostPosted: Tue Jul 12, 2011 10:32 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Heheh ... right, so complicated. The prob is that parent and sub product use the same attributes code; options and their comments are put together as a 'label' and there are several cases as attributes for subs and normal products are managed altogether.

So if you're into hacking then the file would be /includes/classes/creAttributes.php
and you'd be looking for 'instructions' => $po['products_options_instruct'] and all things related to it.

Good luck!
Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: hiding attribute comments in site
PostPosted: Wed Jul 13, 2011 12:21 pm 
Offline
CRE Newbie
User avatar

Joined: Mon Dec 15, 2008 10:10 pm
Posts: 11
Thanks that helped. I was looking in that file but for some reason just was not able to put two and two together. In case any one is looking, the solution is in the line:
Code:
$label = $op_data['name'] . ':' . ($op_data['instructions'] != '' ? '<br><span class="smallText">' . $op_data['instructions'] . '</span>'


Because there are multiple instances of that line, the key is figuring out which one applies to your specific configuration. In my case (applying the attributes to parent products and then allowing them to repeat for sub products) was the final instance of the above mentioned line. Then all I had to do was add an inline style to the span tag like so...

Code:
style="display: none;"


and viola! Thanks again!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Wed May 23, 2012 8:35 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy