Post by slycrespo » Tue Aug 29, 2017 11:11 pm

Hello!
On register page I want to have the checkbox and text (I wish to subscribe to the Sulc.si newsletter.) in same row:

Image

In file:

/public_html/catalog/view/theme/theme333/template/checkout/register.tpl

I have this code:

---------------------------------------------------------------------------------------------------------------

<div style="clear: both; padding-top: 15px; border-top: 1px solid #EEEEEE;">
<label for="newsletter">
<input class="checkbox" type="checkbox" name="newsletter" value="1" id="newsletter" />
<?php echo $entry_newsletter; ?></label>
<br />
<?php if ($shipping_required) { ?>
<input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
<label for="shipping"><?php echo $entry_shipping; ?></label>

<?php } ?>

</div>


---------------------------------------------------------------------------------------------------------------

How should I change the code to have it in the same row? I am using Opencart version 1.5.6.
Please help! Thanks!

New member

Posts

Joined
Tue Aug 28, 2012 7:41 am

Post by cyclops12 » Wed Aug 30, 2017 12:58 am

If this is the register page then you will need to look at the code in catalog/view/theme/theme333/template/account/register.tpl

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by slycrespo » Wed Aug 30, 2017 2:14 am

No, I think the right file is:

/public_html/catalog/view/theme/theme333/template/checkout/register.tpl

New member

Posts

Joined
Tue Aug 28, 2012 7:41 am

Post by cyclops12 » Wed Aug 30, 2017 2:36 am

yes my bad, i see now it is within the register page on checkout
the only difference from default theme that i can see is

Code: Select all

<div style="clear: both; padding-top: 15px; border-top: 1px solid #EEEEEE;">
  <input type="checkbox" name="newsletter" value="1" id="newsletter" />
  <label for="newsletter"><?php echo $entry_newsletter; ?></label>
  <br />
  <?php if ($shipping_required) { ?>
  <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
  <label for="shipping"><?php echo $entry_shipping; ?></label>
You could try changing your newsletter code to the same as the default newsletter code and see if that helps

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: Bing [Bot] and 42 guests