[SUPPLY][BUG] Product page do not show incoming inventory

Highlighted
Tourist
11 0 1

Hello Team,

[BUG Description]

I have been struggling the last 2 hours trying to show "Pre-Order" instead of "Add to card" if there is a transfer planned and incoming to inventory. It was working great if inventory == 0 but once I tested to pre-order an item and inventory went to -1 the code won't work. 

 

[ANALYSIS]

line 178: 

{% if variant.inventory_management and variant.inventory_quantity == 0 or variant.inventory_quantity < 0 and current_variant.incoming %}

there is nothing defined as current_variant as far as I have searched and this variable has no value.

 

[FIX]

This should be changed to variant.incoming instead.

This fixed the issue for me.

0 Likes
Highlighted
Tourist
11 0 1

Hello,

 

Any one from support team for the Free Themes implementation will handle an update for this ?

 

Whom shall I contact ?

0 Likes
Highlighted
Shopify Partner
439 45 65

Hi @ahmedadelhosni ,

I actually can't understand what is the status of this issue. Is it fixed or not?

If helpful, please Like and Accept Solution
Want to hire me?
Contact Me At
WhatsApp or email me at umairabbascs@gamil.com
Hire me for 1) Theme coding 2) PSD to Shopify 3) Store optimization 4) SEO 5) Store setup 6) and more!
0 Likes
Highlighted
Tourist
11 0 1

Hello,

 

Thanks for your reply. 

 

I am only proposing  a fix to the issue I mentioned. So it is still not fixed.

0 Likes