Adjusting [-- PRODUCT --] Process?

General ShopSite user discussion
Post Reply
ajhauser
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls
Contact:

Adjusting [-- PRODUCT --] Process?

Post by ajhauser »

Hello.
I have my initial page displaying properly... kind of. It can be seen here: http://brotherscountrysupply.com/store/

I am generating my products for page one with the following code (I believe):

Code: Select all

[-- IF PAGE.NumProducts 0 --]
          [-- ELSE --]
            <div class="GeneratedProductsList">        
            [-- LOOP PRODUCTS --]
              <div class="GeneratedProductWrapper">[-- PRODUCT --]</div><!-- GeneratedProductWrapper -->
            [-- END_LOOP PRODUCTS --]
            </div><!-- GeneratedLinksList -->
[-- END_IF --]
This is great, because I am able to add divs and float the items next to each other. But I need to style the [-- PRODUCT --] chunk, which currently displays as follows:

Code: Select all

<div class="GeneratedProductWrapper"><!-- rec 14 -->
        <a name="14"></a>
        <a href="http://brotherscountrysupply.com/store/product14.html"><img  src="http://brotherscountrysupply.com/store/media/ss_size2/nutrena-empower-boost-50.jpg" alt="nutrena-empower-boost-50.jpg" width="89" height="150" vspace="0" hspace="0" border="0"></a>
         <a href="http://brotherscountrysupply.com/store/product14.html">Nutrena Empower Boost</a>
    
        <form action="http://brotherscountrysupply.com/cgi-bin/sc/order.cgi" method="post">
        <input type="hidden" name="storeid" value="*18750091b91e848ba268b99340d9">
        <input type="hidden" name="dbname" value="products">
        <input type="hidden" name="function" value="add">

        <input type="hidden" name="itemnum" value="14">
        <br>
            $29.99                  
        <!-- Empty field [ProductDescription]  -->
        <br>
       
        <span class="opt_hdr"><!-- Empty field [OptionText]  --></span>
          
        <input class="add" type="image"  src="http://brotherscountrysupply.com/store/media/country-pet-supply-button-add-to-cart-1.png" alt="country-pet-supply-button-add-to-cart-1.png" width="88" height="49">
        </form>

</div><!-- GeneratedProductWrapper -->
Can I edit how "[-- PRODUCT --]" runs, so that I can add a div in there and style the price as well? I know you can do some things through the back office but I need a little more flexibility. The product picture and the title DEFENITELY need to be on two seperate lines, at least.

Side Q: Does "[-- IF PAGE.NumProducts 0 --]" make this snippet do NOTHING if there are 0 products assigned to this page, since the "else" is what loops?

Thanks very much!!
Website Design, Website Development, eCommerce and Hosting
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Adjusting [-- PRODUCT --] Process?

Post by Jim »

The [-- PRODUCT --] chunk comes from the product template. So you need to edit the product template and add your code there instead of trying to add it to the page template.
The answer to your Q is yes.
ajhauser
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls
Contact:

Re: Adjusting [-- PRODUCT --] Process?

Post by ajhauser »

Oh yeah... way up at the top there...

THANKS!
Website Design, Website Development, eCommerce and Hosting
Post Reply