Jump to content

bondimedical

Member
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bondimedical

  1. 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}

     

  2. This appears to be a bug with the mobile skin and the simplest solution is to move the line which displays the discounts into the "subtotals" div

    <div class="subtotals">
    
    	<p><span class="price">{$SUM.subtotal}</span> {$LANG.basket.total_sub}</p>
    
    	<p><span class="price">{$SUM.shipping}</span> {$LANG.basket.shipping}</p>
        
        <p><span style="color: #FF0000" class="price">{$SUM.discount}</span> {$LANG.basket.total_discount}</p>
    
    	{foreach from=$TAXES item=tax}
    
    	<p><span class="price">{$tax.value}</span>{$tax.name}</p>
    
    	{/foreach}
    
      </div>

    You may remove the style="color: #FF0000" if you don't want the discount to appear red.

  3. I am finding the discounts are not showing on the order complete page of the CubeCart 5 mobile skin. I have had a look at content.receipt.php and found this code:

    <div class="subtotals">
    
    	<p><span class="price">{$SUM.subtotal}</span> {$LANG.basket.total_sub}</p>
    
    	<p><span class="price">{$SUM.shipping}</span> {$LANG.basket.shipping}</p>
    
    	{foreach from=$TAXES item=tax}
    
    	<p><span class="price">{$tax.value}</span>{$tax.name}</p>
    
    	{/foreach}
    
      </div>
    
      {if $DISCOUNT}
    
      <div class="discounts">
    
    	<p><span style="color: #FF0000" class="price">{$SUM.discount}</span> {$LANG.basket.total_discount}</p>
    
      </div>
    
      {/if} 
    
      <div class="total"><span class="price">{$SUM.total}</span> {$LANG.basket.total_grand}</div>

    Why is the discount not showing?

  4. I am looking at starting to sell my first CubeCart extension. How do I get CubeCart to load the CSS from my extension. I noticed there is a script on the bottom of CubeCart which loads all Javascript. How do I add my .js file to this?

  5. I managed to find what is making the page wider. I noticed on the Desktop version the country field is much longer than all the other fields - see first screenshot. I then commented out the country field row in the table and all the boxes fit on the mobile - see second screenshot. So how do I fix that?

    Desktop.jpg

    Screenshot_20160428-153156.png

  6. All Cubecart stores are displaying the following error on the login page:

    Warning: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50545 Library:50628 in /home/and21159/public_html/classes/db/mysqli.class.php on line 30

    How do I fix this?

     

  7. I just upgraded my store to 6.0.9 enabled caching and noticed that the Storefront appeared completely distorted. I then proceeded to the System Error Log and noticed that I have over 2000 messages which say:

    [Warning] /home/andromed/public_html/classes/cache/memcached.class.php:219 - Cache data not written (Memcached).

    I have disabled the caching and now everything is back to normal. What is the problem with the caching?

×
×
  • Create New...