Remove step 3 in checkout vQMOD

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeRemove step 3 in checkout vQMOD

This topic has been marked as resolved.

Hi, I have found a nice vQMOD file that removes the step 3 in the checkout process.

But it is not compatible with the shoppica coding.

When I manually edited the files with display: none (before I got this vQMOD file), I had the problem for logged in customers. With this mod I still got the problem for logged in costumers.

In any way, I hope you can help me correct this coding so it will work for shoppica.

Thanks for your help.
Andreas

September 12, 2012 at 2:01 pm #13410

I will paste the entire vqmod file in this post and hope anyone please could help me.

<modification>
  <id>Step 3 Checkout</id>
  <version>1.2</version>
  <vqmver>1.0.8</vqmver>
  <author>ffct.cc</author>
        
  <file name="catalog/view/theme/default/template/checkout/checkout.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <div id="shipping-address">
      ]]></search>
      <add><![CDATA[
        <div id="shipping-address" style="display: none">
      ]]></add>
    </operation>
    
    <operation>
      <search position="replace"><![CDATA[
        $('#shipping-address .checkout-content').slideDown('slow');
      ]]></search>
      <add><![CDATA[
        $("#shipping-existing select").prop("selectedIndex", $("#payment-existing select").prop("selectedIndex"));
        $('#shipping-address #button-address').click();
        $('#button-shipping-address').click();
      ]]></add>
    </operation>
  </file>

  <file name="catalog/view/theme/default/template/checkout/guest.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
      ]]></search>
      <add><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" style="display: none"/>
      ]]></add>
    </operation>

    <operation>
      <search position="replace"><![CDATA[
        <label for="shipping"><?php echo $entry_shipping; ?></label>
      ]]></search>
      <add><![CDATA[
        <label for="shipping" style="display: none"><?php echo $entry_shipping; ?></label>
      ]]></add>
    </operation>
  </file>

  <file name="catalog/view/theme/default/template/checkout/register.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
      ]]></search>
      <add><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" style="display: none"/>
      ]]></add>
    </operation>

    <operation>
      <search position="replace"><![CDATA[
        <label for="shipping"><?php echo $entry_shipping; ?></label>
      ]]></search>
      <add><![CDATA[
        <label for="shipping" style="display: none"><?php echo $entry_shipping; ?></label>
      ]]></add>
    </operation>
  </file>
</modification>

September 19, 2012 at 12:36 pm #13513

You can try this:

<modification>
  <id>Step 3 Checkout</id>
  <version>1.2</version>
  <vqmver>1.0.8</vqmver>
  <author>ffct.cc</author>
        
  <file name="catalog/view/theme/default/template/checkout/checkout.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <div id="shipping-address">
      ]]></search>
      <add><![CDATA[
        <div id="shipping-address" style="display: none">
      ]]></add>
    </operation>
    
    <operation>
      <search position="replace"><![CDATA[
        $('#shipping-address .checkout-content').slideDown('slow');
      ]]></search>
      <add><![CDATA[
        $("#shipping-existing select").prop("selectedIndex", $("#payment-existing select").prop("selectedIndex"));
        $('#shipping-address #button-address').click();
        $('#button-shipping-address').click();
      ]]></add>
    </operation>
  </file>

  <file name="catalog/view/theme/default/template/checkout/guest.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping"<?php if ($shipping_address): ?> checked="checked"<?php endif; ?> />
      ]]></search>
      <add><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" style="display: none"/>
      ]]></add>
    </operation>

    <operation>
      <search position="replace"><![CDATA[
        <div class="s_row_2 s_mb_10 clearfix">
      ]]></search>
      <add><![CDATA[
    <div class="s_row_2 s_mb_10 clearfix" style="display: none">
      ]]></add>
    </operation>
  </file>

  <file name="catalog/view/theme/default/template/checkout/register.tpl">
    <operation>
      <search position="replace"><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
      ]]></search>
      <add><![CDATA[
        <input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" style="display: none"/>
      ]]></add>
    </operation>

    <operation>
      <search position="replace"><![CDATA[
        <label class="s_checkbox" for="shipping">
      ]]></search>
      <add><![CDATA[
    <label class="s_checkbox" for="shipping" style="display: none">
      ]]></add>
    </operation>
  </file>
</modification>

Regards,
ThemeBurn team

September 26, 2012 at 11:44 am #13662

Hi, thanks for your reply!

It almost works, first of all I replaced all three entries of ‘default’ with a ‘*’

It works perfect for guest checkout. But it still does not work for when a user is logged in. When you click next in step 2 this vqmod should make you jump to step 4 (and hide step 3). But i get stuck at this point.

So something must still be wrong.

September 26, 2012 at 12:54 pm #13674

Does it work with the default theme ?

September 26, 2012 at 1:07 pm #13676

Yes it does, so it must be something with diffrent codings in shoppica.

Another person hade the same issue but with another theme that he manage to solve.

September 26, 2012 at 1:16 pm #13685

can it be this part that is the problem?

    <operation>
      <search position="replace"><![CDATA[
        $('#shipping-address .checkout-content').slideDown('slow');
      ]]></search>
      <add><![CDATA[
        $("#shipping-existing select").prop("selectedIndex", $("#payment-existing select").prop("selectedIndex"));
        $('#shipping-address #button-address').click();
        $('#button-shipping-address').click();
      ]]></add>
    </operation>

September 26, 2012 at 4:19 pm #13713

Open catalog/view/theme/shoppica2/template/checkout/shipping_address.tpl, find:

<a class="shipping_button-address s_button_1 s_main_color_bgr">
and replace it with:

<a id="button-shipping-address" class="shipping_button-address s_button_1 s_main_color_bgr">

After this, the vqmod from the previous post should work.

Regards,
ThemeBurn team

September 28, 2012 at 4:39 pm #13779

Thank you that works! I could never have done that without your help.
It is a little bit slow, like the animation is not correct. But I am sure customers won’t see that or care if they do.

Thanks again!

October 10, 2012 at 10:34 am #14171

Glad we’ve helped, mate :)

Best,
ThemeBurn team

October 11, 2012 at 11:20 am #14217

Hi again,

I just realized that the jump to the next step is very slow if it is the first time you are making the call.

Is there any way to make a change so this will speed up.

Customers might think something is wrong if it takes more than 5 seconds after they press the button.

Best regards
Andreas

October 24, 2012 at 5:01 pm #14659

Hi Andreas,

Is this the same with the default theme?

Unfortunately, we can’t be very helpful here, as this is not our modification.

Best,
ThemeBurn team

October 30, 2012 at 11:54 am #14787
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.