Hikashop 3 few questions

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #260774

Hi,

1. Any changes to new checkout cart view so quantity would be refreshed like it does on product page?

2. In login form i have added tag for social buttons "{socialbuttons}"
It works well but after ajax call buttons no longer are displayed and it shows tag so i need to refresh page to show them again.
As i understand i should somehow refresh that div where are buttons located but not sure how can this be done?

Or another example is using acymailing "(auto)Subscribe during Joomla registration" plugin which adds checkbox and after ajax it doesn't show anymore untill page is refreshed.

What would be solution for this?

3. If you have one product in checkout view cart, after it is deleted you stay on same page and table columns are visible. Coupon view is also visible if you have it in same step. Screenshot attached. Same happens if you try to modify quantity of the product to higher stock then it has. After pressing refresh product gets deleted....

Thanks

Attachments:
Last edit: 7 years 9 months ago by kyratn.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #260780

Hi,

1. I'm afraid that I don't understand your point.

2. You can't have any kind of tag or content which will be replaced by a system plugin.
The checkout modules can be refreshed in Ajax and in that specific way, the Joomla triggers are not called.
So if you want to display your social buttons, best is to add some PHP code to display directly the content.

Otherwise, for plugins, we now have some specific triggers to let others add new fields in the registration form.

3. Yes, that's logical.

4. Please do not edit several times your messages ; it have some very unpleasant and unwanted side effects in our ticket system.
Thank you for your understanding.

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: 1119
  • Thank you received: 114
7 years 9 months ago #260808

Hi,

1. I mean to have - + near quantity input insteed that refresh icon.

2. Thanks for clarification.

3. I dont understand why it is working like that?
Shouldn't it display error message that there is not enought stock, like it does with old checkout, insteed just deleting that product from the cart?


Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #260825

Hi,

1 - For the moment we are focusing on major bugs.
The "+ / -" for the checkout cart is an improvement, so we will take a look at it when we will have the time.

3. If you delete a product, there is no need to put a message.
But if there is a limitation or something which change the product quantity, a message is generated.
Now maybe the cart do not read it correctly, like the "add to cart" is doing.
We will take a look at that.

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: 1119
  • Thank you received: 114
7 years 9 months ago #260875

Hi,

1. Thanks for update.

3. What i want to say that after last product gets deleted it should show message "cart is empty" and not empty table with total of 0.00
With old checkout after last product deleted you get that message and option "URL where you will be redirected when the cart is empty" was working...

As about quantity there is some issue for sure. Example. I have product in cart which has stock 1 and if i put in quantity input "2" then refresh it's gets deleted...It shouldn't be like that and with old checkout there would come error message that there is not enough stock.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #260918

Hi,

3 - Because the cart is refreshing in ajax ; it is not possible to perform a user redirection to another page.
So, we could add a message above the cart saying that the cart is empty, but it will be difficult to redirect the user to the product listing like it was before ; because we are now in dynamic refreshing using ajax.

There are some tags in the element (and some JS) in order to block the quantity modification outside some limits.
These limits are currently base on the "maximum quantity per order" but I think we will also include the handle of the product current stock.

About the fact that the product is removed from the cart ; I think it's a side effect of the new limitation system.
I'll look into it to see how to integrate a "revert" algorithm so if the modification cannot be processed, the cart won't be updated (instead of letting the cart be saved and the limitation system remove the product due to the limit).

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.
The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #260950

Hi,

3. Having all views removed and empty cart message would be really great. Due hika 3 is really new i understand it will take some time to work it properly without bugs. So keep up your good work!

4. Another issue (maybe it should be like that) you should check is cart module. If set "add to cart legacy" to YES and enable dropdown in cart module, after product is added to cart, ajax in cart module doesn't work. You need to refresh page and all works fine. Product also gets removed if you try to update it to higher stock then available. Same as checkout cart.....

Regards

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #260966

Hi,

3 - Thanks

4 - If you have the "add to cart" in legacy mode, they won't be any javascript even for the cart to refresh.
But with the legacy mode, there is a "sub mode" where the return will be the cart module and the script will directly push the content in the div. I'm afraid that it is bit too brutal for the system and some elements might not be initialized properly.

Otherwise yes, it's the same reaction in your cart module.
In the cart class, a product is removed from the cart if the limit is reach and that the behavior that I need to tweak.

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: 1119
  • Thank you received: 114
7 years 9 months ago #261235

Hi,

What submit button actually does in checkout fields? I have removed it and see no difference but i wan't to be sure that i won't get side effects.

Thanks

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 9 months ago #261238

Hi,

I might be mistaking, but I recall already telling you that this button is useful to submit the field data in ajax without having to submit the whole step data.
For example, if you have a one page checkout and you want to have the customer first fill in the fields and that some other view refreshes based on that (like the cart total would change for example) without having to refresh the whole page.
In your case, with the way your checkout workflow is setup it is indeed unecessary and can be hidden/removed.

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #261307

Hi,

Sorry, could be you are right.

One more questions. Am i right that there is no more cart status view in hikashop 3 for new checkout? It looks like it is using same show_block_cart. To change how it looks i need to use css like this:

.hikashop_checkout_page_step3 .hikashop_checkout_cart

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #261308

Hi,

There is still the cart status ; but it is using the exact same view with some "parameters".
The new checkout system will provide new settings for each block, like a "read only" parameter.
For the moment it's not activated but it is in the plans.

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.
The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #261414

Hi,

What is the code now to show custom field in status view?

Old one: echo $order->MY_FIELD; seems doesnt work.

Did var dump and see it there but can't get it to show.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #261415

Hi,

As usual for HikaShop 3 and like we already wrote you ; you need to get the cart :
CF : www.hikashop.com/forum/hikashop-3-0-beta...html?start=20#259704

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: 1119
  • Thank you received: 114
7 years 9 months ago #261491

Hi,

Well it is already loaded but still my field doesn't show up.
Asi said i did var_dump and see it there.

This is the original code from status block with field name "lpexpress"

<?php
	$cart = $this->checkoutHelper->getCart();

	$array = array();
	if(!empty($cart->shipping)) {
		$names = array();
		foreach($cart->shipping as $shipping) {
			$names[] = $shipping->shipping_name;
		}
		$array[] = JText::sprintf('HIKASHOP_SHIPPING_METHOD_CHOSEN', '<span class="label label-info">'.implode('</span> <span class="label label-info">', $names).'</span>');
	}

    echo $order->lpexpress;

	if(!empty($cart->payment))
		$array[] = JText::sprintf('HIKASHOP_PAYMENT_METHOD_CHOSEN', '<span class="label label-info">'.$cart->payment->payment_name.'</span>');

	echo implode('<br/>', $array);
?>

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #261497

Hi,

Please review your code and your variable names.
If you're using a variable which do not exist, your code cannot work properly.

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: 1119
  • Thank you received: 114
7 years 9 months ago #261666

Hi,

Indeed, this was missing

$order = $cart->cart_fields;

Thanks

Last edit: 7 years 9 months ago by kyratn.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum