Jump to content

Upgrade with custom skin


HA1
 Share

Recommended Posts

Our site runs on a version 5.2.5 using a slightly modified version of the crosshatch skin.  

 

Is there documentation that indicates on whether or not changes to the skin are necessary between different versions of cubecart?

 

We would like to upgrade to 5.2.8 and weren't sure if this would require any modifications to the skin we are using.  

Link to comment
Share on other sites

Running a comparison between the CC525 Crosshatch and the CC528 Crosshatch, there are these differences:

 

/js/script.js:

Near line 5, find:

$(this).addClass('menu_open').siblings('ul').slideDown();

On a new blank line after it, add:

return;

/templates/content.checkout.confirm.php:

Near line 80, find:

<label for="reg_terms">&nbsp;</label><span><input type="checkbox" id="reg_terms" name="terms_agree" value="1" {$terms_conditions_checked}/><a href="{$TERMS_CONDITIONS}" target="_blank">{$LANG.account.register_terms_agree}</a></span>

Change to:

<label for="reg_terms">&nbsp;</label><span><input type="checkbox" id="reg_terms" name="terms_agree" value="1" {$TERMS_CONDITIONS_CHECKED}/><a href="{$TERMS_CONDITIONS}" target="_blank">{$LANG.account.register_terms_agree}</a></span>

/templates/content.homepage.php:

Near line 20, find:

{if $product.ctrl_sale}

On a new blank line above it, add:

{if $product.review_score && $CTRL_REVIEW}
  <!-- Please uncomment to enable
  <div class="rating">
  {for $i = 1; $i <= 5; $i++}
    {if $product.review_score >= $i}
    <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star.png" alt="" />
    {elseif $product.review_score > ($i - 1) && $product.review_score < $i}
    <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star_half.png" alt="" />
    {else}
    <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star_off.png" alt="" />
    {/if}
  {/for}
  </div>
   -->
{/if}

This is a new section of code that will show the review score on products listed in the Latest Products area. It is commented out, but can be enabled.

 

/templates/content.product.php:

Near line 161, find:

<a href="http://gravatar.com/emails/"><img src="http://www.gravatar.com/avatar/{$review.gravatar}?s=50" /></a>{$review.review}</p>

Change this to:

<a href="http://gravatar.com/emails/"><img src="http://www.gravatar.com/avatar/{$review.gravatar}?s=50&amp;r=g" /></a>{$review.review}</p>

/templates/content.receipt.php:

Near lines 3-11, find:

{if isset($MESSAGES)} {foreach from=$MESSAGES item=message}
<p>
  {$message}
</p>
{/foreach} {/if} {if $CTRL_PAYMENT}
<div style="text-align: center;">
  <a href="{$STORE_URL}/index.php?_a=gateway&amp;cart_order_id={$SUM.cart_order_id}">{$LANG.basket.complete_payment}</a>
</div>
{/if}

Replace that, with this:

<p style="text-align: center;">{if $CTRL_PAYMENT}<a href="{$STORE_URL}/index.php?_a=gateway&amp;cart_order_id={$SUM.cart_order_id}">{$LANG.basket.complete_payment}</a> |{/if} <a href="{$STORE_URL}/index.php?_a=vieworder">{$LANG.account.your_orders}</a></p>

That's it.
 

(I have an ongoing project at the free CC5 mods at www.cubecartforums.org, making code difference reports available. I haven't been able to get to it lately.)

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.

 Share

×
×
  • Create New...