Jump to content

CubeCart Mobile Skin - Lightbox 2


bondimedical

Recommended Posts

I have added Lightbox 2 to the mobile skin by following the instructions at http://lokeshdhakar.com/projects/lightbox2/ so if anyone Taps on the product image it opens in a new popup. I would like customers however to have the ability to scroll through all product images. The instructions talk about combining images into a set under "Initialize with HTML" but I am not sure how to implement this on CubeCart. My content.product.php is:

{if isset($PRODUCT) && $PRODUCT}

<h3 class="btitle">{$PRODUCT.name}</h3>

<form action="{$VAL_SELF}" method="post" class="addForm">

  <div>

	  

      <div class="image">

	  	{if $PRODUCT.magnify}

		<a href="{$PRODUCT.source}" title="{$PRODUCT.name}" rel="" data-lightbox="{$PRODUCT.source}">

		<img src="{$PRODUCT.medium}" alt="{$PRODUCT.name}" id="preview" />

		</a>

		{else}

		<img src="{$PRODUCT.medium}" alt="{$PRODUCT.name}" id="preview" />

		{/if}

	  </div>
      
      <div style="text-align:center; font-size:9px;">Tap to Zoom</div>


	<div id="product_detail">

	  {if $PRODUCT.ctrl_sale}

	  <p style="font-size:2em; font-weight:bold;"><span class="price_previous">{$PRODUCT.price}</span> <span class="price_sale">{$PRODUCT.sale_price}</span></p>

	  {else}

	  <p style="font-size:2em; font-weight:bold;">{$PRODUCT.price}</p>

	  {/if}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...