Checkout button

  • Posts: 27
  • Thank you received: 0
11 years 8 months ago #122614

-- HikaShop version -- : 2.1.2
-- Joomla version -- : 2.5.9
-- PHP version -- : 5.4
-- Browser(s) name and version -- : chrome v29.0.xxx

Issue 1:

How do we remove the Add Coupon from the final checkout page ( for us this is step 2 ). I am not asking how to remove Add Coupon.


Issue 2:

I saw this forum post :
www.hikashop.com/forum/4-how-to/13429-ch...der-in-checkout.html

and tried this condition switch in the view file /checkout/step.php - but it has not worked for us.

if($this->nextButton)
{
/**
* check for the step condition, if we are at the end of our checkout process, change the button to Finish
*/

if($this->step==2)
{
echo $this->cart->displayButton('complete','next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"');
}
else
{
echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'
if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\'))
{
if(hikashopCheckMethods())
{
document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();
}
} return false;',

'id="hikashop_checkout_next_button"');
}
}

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #122633

Hi,

1. I think that you should remove the "coupon" action of your checkout workflow, through "Hikashop->System->Configuration->'Checkout'".
2. Can you show me a screenshot of how did you configured your checkout workflow through "Hikashop->System->Configuration->'Checkout'" ?

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
11 years 8 months ago #122851

Hi Mohamed,

We do NOT want to remove the coupon process. We just do not want to have it appear in the final checkout step if no coupon was added.


Also, issue number 2 is about trying to show a different label on the checkout button .... in the code sample you will see we want 'Finish' not 'Next'.

Thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #122882

1. Ok but how do you want your customer to add their coupon code if you hide your coupon input if no coupon code was added ?
2. Regarding the label on the checkout button, I think that you'll probably find your answer there .

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
11 years 8 months ago #122966

- If no coupon was added then don't show coupon input again. Maybe there is some coupon empty condition ?

- Will take another look at step.php

Thanks Mohamed

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #122991

Hi,

But if a coupon was entered by the user, there is no more an input box but there is the coupon code with a button to remove it.
You can edit the view "checkout | coupon" for this.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
11 years 5 months ago #136824

Hi,

When a registered user who is not logged in, buys, then proceeds to checkout, then logs in ... all works correctly.

However, after log in they have a page which has a 'Next' button and nothing else. The url for this page and the hidden form values look the same as the next page which has all the checkout info. i.e. they both have the url : www.example.com/shop/checkout/step/step-1

If this user uses the Joomla! user login, then they are directed to the checkout : address_shipping_cart_payment_coupon_confirm

...

Our 'step.php' view file has only been modified to allow for different button text on final step ( as per code Nicholas published ).

Our advanced checkout workflow is : login,address_shipping_cart_payment_coupon_confirm,end

...

Similarly, using Credit Card manual plugin, the user fills in their details clicks to complete and there is another page with all the checkout ( i.e. : address_shipping_cart_payment_coupon_confirm ). The difference is that the Credit Card details are echoed out for some kind of 'confirmation' step. Can we remove this step ?

...

The site is still : Hika 2.1.2
Joomla 2.5.9

I will PM you full site/access details. Any help would be greatly appreciated.

I do realise you will ask me to upgrade, but would rather leave this install alone for now. Unless there is a sure resolution in the latest edition.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #136955

Hi,
1. Can you show me how did you configured your checkout workflow ("Hikashop->System->Configuration->Checkout")through some screenshots ?
2. I didn't really understood the problem that you were having with the credit card payment plugin, can you show me some screenshots of the issue that you are having ?
Note that it's possible that your issue has already been fixed through the last Hikashop version.

Last edit: 11 years 5 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum