HA1 Posted February 16, 2014 Share Posted February 16, 2014 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 16, 2014 Share Posted February 16, 2014 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"> </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"> </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&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&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&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.) Quote Link to comment Share on other sites More sharing options...
HA1 Posted February 17, 2014 Author Share Posted February 17, 2014 This was very, very, helpful. Thank you very much. The upgrade went smoothly and we are very happy that the confirm shipping preference issue was addressed in version 5.2.8. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 17, 2014 Share Posted February 17, 2014 Amazing work Brian. None of these changes are essential but definitely worth doing. Especially the macro on terms and condition to remember their past choice. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.