Artist Product Page

Dazed
Dazed
@dazed
11 years ago
1,022 posts
I want to change the artist product page to show 4 in a row and maybe 20-15 on a page and then do a page next. I have the below as a starting point. Aside from the bad format I have the content I need. My problem is that I am not able to set it to a row of 4 and then go to the next row. If I set the item_index.tpl to 4, 4 do display but the rest disappear since that is a pagebreak on 4. I am also missing the content to do a page next.

suggestions? :)



item_list.tpl (store module)
{jrCore_module_url module="jrStore" assign="murl"}
{if isset($_items)}
<div class="container" xmlns="http://www.w3.org/1999/html">
    <div class="row">
    {foreach from=$_items item="item"}

                    <div class="col2">
                        <div class="block_image">
                            <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.product_title_url}">{jrCore_module_function function="jrImage_display" module="jrStore" type="product_image" item_id=$item._item_id size="xlarge" class="iloutline img_scale" crop="auto" alt=$item.product_title width=false height=false}</a> <br>
                            <h2><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.product_title_url}">{$item.product_title}</a></h2><br>
                            <span class="info">Category:</span> <span class="info_c"><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/category/{$item.product_category_url}">{$item.product_category}</a></span><br>
                            {jrCore_module_function function="jrRating_form" type="star" module="jrStore" index="1" item_id=$item._item_id current=$item.product_rating_1_average_count|default:0 votes=$item.product_rating_1_count|default:0}<br>
                            {if isset($item.product_qty) && $item.product_qty > 0}
                                <br>
                                <span class="info_c">{jrCore_lang module="jrStore" id="42" default="Available Quantity"}: {$item.product_qty}</span>
                            {elseif isset($item.product_qty) && $item.product_qty === "0"}
                                <br>
                                <span class="info_c sold_out">{jrCore_lang module="jrStore" id="50" default="Sold Out"}</span>
                            {/if}
                          <br>

                            
                          <br>
                            {if isset($item.product_qty) && $item.product_qty === "0"}
                                <span class="sold_out">{jrCore_lang module="jrStore" id="50" default="Sold Out"}</span>
                            {else}
                                {if $item.product_qty > 0}
                                    {$quantity_max = $item.product_qty}
                                    {else}
                                    {$quantity_max = 9999}
                                {/if}
                                {jrCore_module_function function="jrFoxyCart_add_to_cart" module="jrStore" field="product" item=$item quantity_max=$quantity_max}
                            {/if}
                            <br><br>
                            {jrCore_module_function function="jrFoxyCartBundle_button" module="jrStore" field="product" item=$item}
                            {jrCore_item_update_button module="jrStore" profile_id=$item._profile_id item_id=$item._item_id}
                            {jrCore_item_delete_button module="jrStore" profile_id=$item._profile_id item_id=$item._item_id}

                        </div>
                        <div class="clear"></div>
                    </div>

    {/foreach}
</div>
</div>
{/if}


 

updated by @dazed: 10/18/14 03:02:10PM
douglas
@douglas
11 years ago
2,797 posts
You'll want to change this:

<div class="col2">

to this:

<div class="col3">

and set your pagebreak to 20 in your jrCore_list function.

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
You rock Douglas. I will check this out tonight.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
That worked. I think it is working well. One question though. Is there an easy way to fix the attached example? If quantity is not added the alignment goes all off.
jpg
 •  24KB


updated by @dazed: 09/15/14 06:53:59PM
douglas
@douglas
11 years ago
2,797 posts
You could check to see if the quantity variable is set and has a greater value than 0, and if not just add a space so the line height is still there.

Maybe something like this:

{if isset($quantity) && $quantity > 0}
{$quantity}
{else}
 & n b s p ;
{/if}

be sure to remove the spaces between & n b s p ;


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 09/17/14 05:20:27AM