Brooklyn Theme posting code above pictures parent() .css('visibility', variant.inventory_quantity >

New Member
7 0 0

Hello, 

 

I am working on my store and have entered some coding that was listed to help with inventory.  I have everything the way I want it, except, above my pictures, I can see this thread of code above the pictures in my store.  parent() .css('visibility', variant.inventory_quantity > 0.  just needing to know how to fix this and have it removed.  Thanks. 

0 Likes
Highlighted

hello @pickettv ,

Please share your site url and screenshot of what you want to remove

so that I will give you exact solution

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
Highlighted
New Member
7 0 0

This is coming up on above all of my pictures. 

0 Likes
Highlighted

@pickettv ,

Please share password of your site

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
7 0 0

my temp password is: mypasswordispassword1

0 Likes
Highlighted

@pickettv ,

its wrong password

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
7 0 0

triege

0 Likes
Highlighted
New Member
7 0 0

sorry bout that.  triege is the one I should have given you. 

0 Likes
Highlighted
Shopify Expert
2686 67 688

This code in your product-template section 

 

<hr class="hr--small">
  .parent()
  .css('visibility', variant.inventory_quantity > 0 ? 'visible' : 'hidden');
<div class="grid__item large--seven-twelfths medium--seven-twelfths text-center"> <hr class="hr--small">

is probably a leftover from the code you moved to theme.js asset.

 

 

I must add that your inventory code would not work like this -- Shopify stopped populating variant.inventory_quantity  for javascript like  2 years ago...

You may check this thread for possible solution.

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
I am away till Feb-15.
0 Likes