cyben76 Posted July 14, 2017 Share Posted July 14, 2017 Is it possible to make a product add-on to disppay in cart like MarketConnect? With logo and options? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 14, 2017 Share Posted July 14, 2017 Is it possible to make a product add-on to display in cart like MarketConnect? With logo and options? it'd be possible but would need some effort - one way would be to modify configureproduct.tpl and change the default output coding of addons to match that generated by MarketConnect. alternatively, you might be able to modify the existing array to display new addons via a hook - but neither are quick or simple things to do. 0 Quote Link to comment Share on other sites More sharing options...
cyben76 Posted July 14, 2017 Author Share Posted July 14, 2017 it'd be possible but would need some effort - one way would be to modify configureproduct.tpl and change the default output coding of addons to match that generated by MarketConnect. alternatively, you might be able to modify the existing array to display new addons via a hook - but neither are quick or simple things to do. So i tried using the configureproduct.tpl modification way, Replaced <div class="row addon-products"> {foreach $addons as $addon} <div class="col-sm-{if count($addons) > 1}6{else}12{/if}"> <div class="panel panel-default panel-addon{if $addon.status} panel-addon-selected{/if}"> <div class="panel-body"> <label><input type="checkbox" name="addons[{$addon.id}]"> {$addon.name}</label><br> {$addon.description} </div> <div class="panel-price"> {$addon.pricing} </div> <div class="panel-add"> {$LANG.addtocart} </div> </div> </div>{/foreach} </div> With <div class="addon-promo-container"> {foreach $addons as $addon} <div class="description"> <div class="logo"> <img src="assets/img/addon/{$addon.id}/logo.png" width="60"> </div> <h3>{$addon.name}</h3> <p>{$addon.description}</p> </div> <div class="clearfix"></div> <div class="pull-right"><strong>{$addon.billingcycle}</strong></div> <label class="radio-inline"><input type="radio" name="addons_radio[{$addon.id}]" class="addon-selector" checked> * None<span class="pull-right">-</span></label><br> <label class="radio-inline"><input type="radio" name="addons_radio[{$addon.id}]" value="{$addon.id}" class="addon-selector"> * Select<span class="pull-right">{$addon.pricing}</span></label> </div> {/foreach} Outputs: [ATTACH=CONFIG]14745[/ATTACH] The {$addon.billingcycle} doesn't output anything even if i change my add-on as monthly or annually 0 Quote Link to comment Share on other sites More sharing options...
cyben76 Posted July 14, 2017 Author Share Posted July 14, 2017 Spotted my own mistake Should be: {foreach $addons as $addon} <div class="addon-promo-container"> <div class="description"> <div class="logo"> <img src="assets/img/addon/{$addon.id}/logo.png" width="60"> </div> <h3>{$addon.name}</h3> <p>{$addon.description}</p> </div> <div class="clearfix"></div> <div class="pull-right"><strong>{$addon.billingcycle}</strong></div> <label class="radio-inline"><input type="radio" name="addons_radio[{$addon.id}]" class="addon-selector" checked> None<span class="pull-right">-</span></label><br> <label class="radio-inline"><input type="radio" name="addons_radio[{$addon.id}]" value="{$addon.id}" class="addon-selector"> Select<span class="pull-right">{$addon.pricing}</span></label> </div> {/foreach} 0 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.