bondimedical Posted April 3, 2015 Share Posted April 3, 2015 I am trying to add a gateway logos in Foundation after the text on the checkout page. I have modified line 22 of content.gateway.php to <label for="{$gateway.folder}">{$gateway.description} <img src="https://www.example.com/modules/gateway/{$gateway.folder}/admin/logo.gif"/></label> but no images appear? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 3, 2015 Share Posted April 3, 2015 When frequently editing a skin template file, make sure the cache is switched off. Can you call this image directly in the browser?https://www.example.com/modules/gateway/FOLDER/admin/logo.gif Quote Link to comment Share on other sites More sharing options...
bondimedical Posted April 3, 2015 Author Share Posted April 3, 2015 Yes the image appears. I have even set a specific gateway https://www.example.com/modules/gateway/PayPal/admin/logo.gif and the PayPal image appears in Dreamweaver but nothing shows on the checkout? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 3, 2015 Share Posted April 3, 2015 Have your browser show you the HTML source it received from your site. Find where the image is supposed to be and make sure the HTML is correct. Quote Link to comment Share on other sites More sharing options...
bondimedical Posted April 3, 2015 Author Share Posted April 3, 2015 <div class="row"> <div class="small-12 columns"> <ul class="no-bullet center" id="gateway_error"> <li> <input name="gateway" type="radio" value="Card_Capture" id="Card_Capture" required rel="gateway_error"><label for="Card_Capture">Credit or Debit Card</label> </li> <li> <input name="gateway" type="radio" value="Cash_On_Delivery" id="Cash_On_Delivery" required rel="gateway_error"><label for="Cash_On_Delivery">Cash On Delivery</label> </li> <li> <input name="gateway" type="radio" value="PayPal" id="PayPal" required rel="gateway_error"><label for="PayPal">PayPal</label> </li> </ul> <div class="hide" id="validate_gateway_required">Please select a payment method.</div> </div> </div> The HTML I put there seems to have disappeared? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 3, 2015 Share Posted April 3, 2015 Hi Have a read of https://www.havenswift-hosting.co.uk/displaying-payment-gateway-logos-in-cubecart-v5-checkout/ Havent checked with V6 to see whether the small core file edit is required or not - will check later and report back Ian Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 3, 2015 Share Posted April 3, 2015 No need for all this. I think you can replace the default code and add the image path in the description field. If it detects an image it will show it instead of the text. If not it needs to. V5 does. Quote Link to comment Share on other sites More sharing options...
bondimedical Posted April 3, 2015 Author Share Posted April 3, 2015 Hi Al. You are right. I have put an image URL in the description and it shows in the checkout. But how can I have an image and text? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 3, 2015 Share Posted April 3, 2015 Hmm it only allows one or the other. You could edit the image to have text under it? Quote Link to comment Share on other sites More sharing options...
bondimedical Posted April 3, 2015 Author Share Posted April 3, 2015 I could do that but a lot of work. Do you know why the code in my first comment in this thread doesn't work? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 3, 2015 Share Posted April 3, 2015 I think, depending on what's happening and the viewport size, CC6 is using either content.gateway.php (which is a separate step at checkout), or is using content.checkout.php (which now includes the gateways getting listed at the bottom of the View Basket screen). Quote Link to comment Share on other sites More sharing options...
bondimedical Posted April 4, 2015 Author Share Posted April 4, 2015 You are right in that it is using content.checkout.php because the HTML matches up but I have yet to find a case with Foundation where an extra step is added to the checkout. I wonder if Foundation even uses content.gateway.php? Quote Link to comment Share on other sites More sharing options...
mojee Posted February 23, 2016 Share Posted February 23, 2016 I added image and I have installed two gateway, the image show on both gateway at checkout and if I add text in plugin setting it also show text left side of image. Q, can I hide it from one gateway and show to only for one gateway? 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.