Orders exceeding stock

Phoca Cart - complex e-commerce extension
User avatar
voymacao
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2019, 09:06

Orders exceeding stock

Post by voymacao »

Hello, may i please ask your help about an issue i have with stock.
I have a cart setup based on product attributes, and for stock method i use product variations.
I have Stock checking and Stock checkout enabled, and also have Remove select option (Attribute) enabled.
When i have only 1 item in stock but i order 2 items, they are added to the cart normally.
Then, in checkout view the warning "product not available or not in stock etc" is displayed, but this doesn't restrict the order of being processed. If for example the customer doesn't see the warning, he can order normally. How can i block that order?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Orders exceeding stock

Post by Jan »

Hi, please install this version:
https://github.com/PhocaCz/PhocaCart/re ... 6Beta3.zip

and let me know if you get the same problems (just install it in your Joomla administration, don't uninstall the previous version)

Jan
If you find Phoca extensions useful, please support the project
User avatar
voymacao
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2019, 09:06

Re: Orders exceeding stock

Post by voymacao »

Hi Jan,
Indeed that worked thank you, cart doesn't process above stock orders now.
Please have a look at the Tags and Labels at this version.
When i installed it, all my products without a Label automatically received the first available Label.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Orders exceeding stock

Post by Jan »

Hi, what exactly do you mean with Labels, can you paste screenshots of what do you exactly mean?
When i installed it, all my products without a Label automatically received the first available Label.
All items or only the newly saved?

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Orders exceeding stock

Post by Jan »

Ok, I found it:

FROM

Code: Select all

<field name="tags" type="phocatags" multiple="1" label="COM_PHOCACART_FIELD_TAGS_LABEL" description="COM_PHOCACART_FIELD_TAGS_DESC" class="inputbox" size="1"/>

        <field name="taglabels" type="phocataglabels" multiple="1" label="COM_PHOCACART_FIELD_LABELS_LABEL" description="COM_PHOCACART_FIELD_LABELS_DESC" class="inputbox" size="1"/>
TO:

Code: Select all

<field name="tags" type="phocatags" multiple="true" label="COM_PHOCACART_FIELD_TAGS_LABEL" description="COM_PHOCACART_FIELD_TAGS_DESC" class="inputbox" size="1"/>

        <field name="taglabels" type="phocataglabels" multiple="true" label="COM_PHOCACART_FIELD_LABELS_LABEL" description="COM_PHOCACART_FIELD_LABELS_DESC" class="inputbox" size="1"/>

administrator/components/com_phocacart/models/forms/phocacartitem.xml

Please test this:
https://github.com/PhocaCz/PhocaCart/re ... 6Beta4.zip

and let me know.

Jan
If you find Phoca extensions useful, please support the project
User avatar
voymacao
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2019, 09:06

Re: Orders exceeding stock

Post by voymacao »

Hi Jan,
There is a phocacartitems.xml file in the path you advise, but i can't see the field name="tags" in it.
Image
User avatar
voymacao
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2019, 09:06

Re: Orders exceeding stock

Post by voymacao »

Installed the Beta4 and i think its fixed now, thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Orders exceeding stock

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
jpeters
Phoca Professional
Phoca Professional
Posts: 225
Joined: 31 Dec 2020, 09:46

Re: Orders exceeding stock

Post by jpeters »

hello Jan,
i am getting notified about the new beta. but joomla install can not download it (installer/update).

wrong url: https://github.com/PhocaCz/PhocaCart/re ... 6Beta4.zip
right url: https://github.com/PhocaCz/PhocaCart/re ... 6Beta4.zip
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Orders exceeding stock

Post by Jan »

Hi, beta needs to be installed manually only.
If you find Phoca extensions useful, please support the project
Post Reply