My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
At a glance, it might be possible to get the layout you want from the mod as is, but more likely you would need to change the comment so it appears after the attribute (there is non-functional code for this in the standard attribute file.)
I have to run, but may be able to look at this late tonight or tomorrow.
Hi,
I've updated the image using tinypic (see it attached)... It's the RED text in this image (that appears under the labels in the picture) that I'm trying to duplicate - another way of doing it would be to display the comments underneath, or to the side of the attribute, rather than the standard of placing it above the attribute.
Glenn - I believe you are the author of Flexible Attributes, my kudos... and a few questions below...
1.) Any chance that there is a way to do this with CSS using Flexible Attributes?
2.) You say I could change the attribute to display the comment after the attribute. Where would I make this change?
3.) Regarding your own website, I saw the link at the beginning of this thread and had a look. Excellent - and in fact I may have a need to do what you've done as well. From what I see though I'm trying to understand, have you modified the cart completely to look like your website, or have you embedded a Product into your website? I've done this previously with Miva Cart and I am moving to ZenCart I am looking to find a way to do this as well. With Miva I used to embed the Product into any page on my site (using a template that displayed the page as if it were another page on my website, then embedding the product attributes and the form to let the user 'Add To Cart').
So, I'm curious how you did this on your website (http://www.nyfaeriefest.com/) with the Artist Vendor Application? Is your cart setup to look like the site, or have you embedded the product into one of the site's pages?
Thanks in advance,
-Brett
Neither - the entire site is Zen Cart. This is an example of how the template can be modified, and without major code changes in this instance. Most of the site pages are ez-pages, while the application and registration/payment pages are products.have you modified the cart completely to look like your website, or have you embedded a Product into your website?
Hi,
I do see that now. I wonder though, is there some advantage to doing that, over just using the cart on pages requiring payments?
Regarding Flexible Attributes (from my a few posts back):
--
1.) Any chance that there is a way to do this with CSS using Flexible Attributes?
2.) You say I could change the attribute to display the comment after the attribute. Where would I make this change?
--
Thanks,
-Brett
To move the comment text from above the name to below it, find these sections in tpl_modules_attributes.phpand switch thePHP Code:
<?php
if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
?>
<h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>
<?php
}
?>
(bunch of code)
<?php if ($options_comment[$i] != '' and $options_comment_position[$i] == '1') { ?>
<div class="ProductInfoComments"><?php echo $options_comment[$i]; ?></div>
<?php } ?>
== '0')
and
== '1')
PHP Code:
<?php
if ($options_comment[$i] != '' and $options_comment_position[$i] == '1') {
?>
<h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>
<?php
}
?>
(bunch of code)
<?php if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') { ?>
<div class="ProductInfoComments"><?php echo $options_comment[$i]; ?></div>
<?php } ?>
I only had to build the site once, with navigation and different page content all handled using stock Zen Cart functions like the ez-pages sidebox menu and the ez-page content editing system.is there some advantage to doing that, over just using the cart on pages requiring payments?
Hi,
Thanks that helped. I also removed this code, the last in the attribsOptions DIV to get place the comments text immediately after the attribute:
I added the <br> back in like this in options_comment... last block, like this, after swapping places with the 0 and 1 as you suggested:Code:<br class="clearBoth" />
Thanks,Code:<?php if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') { ?> <div class="ProductInfoComments"><?php echo $options_comment[$i]; ?></div> <br class="clearBoth" /> <?php } else { ?> <br class="clearBoth" /> <?php } ?> </div>
-Brett
I have
I want display:none for the <br /> on the radio buttons in this attribute only. This is the first step in trying to get the radio buttons to appear in columns (there are 18 of them).I tried both of the followingCode:<div class="wrapperAttribsOptions" id="wAttrib-8"> <div class="attribsOptions"> <h4 class="optionName back">Available Dates :</h4> <div class="back"> <input type="radio" name="id[8]" value="13" checked="checked" id="attrib-8-13" /><label class="attribsRadioButton zero" for="attrib-8-13">Please select (dd/mm/yyyy)</label><br /> <input type="radio" name="id[8]" value="14" id="attrib-8-14" /><label class="attribsRadioButton zero" for="attrib-8-14">01/05/2011</label><br />
that didnt work - clearly I havent fully understood somethingCode:#wAttrib-8 .back+br {display:none} #wAttrib-8 .attribsOptions.back+br {display:none}
can anyone help out please
Add to your stylesheet_flexible_attributes
#wAttrib-8 br+input+label+br {display:none;}
Bookmarks