Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Change Add To Cart, and View to "Out Of Stock" for OOS items.  (Read 35203 times)

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Change Add To Cart, and View to "Out Of Stock" for OOS items.
« on: October 13, 2014, 01:44:33 PM »
I want to be able to change my add to cart button and the mouse over view on photos in listings from "View" to Out Of Stock. 

I want my items to stay viewable on the site, because google doesn't like items to appear and disappear.  So when an item goes out of stock I want the listing to stay available to be viewed.  However the out of stock message that appears on a product is very small, and is not very noticeable.  It is also bad for customers for them to add an item and then get told it is out of stock much later in their cart.

So I would like the add to cart button to be deactivated, and changed to an out of stock button in red.  I can do the art even if you like.  I will upload the image here in a little while.  Here is an example page I would like changed.  See how out of stock is very small at the bottom of the page. 

http://www.openblindboxes.com/series-4-dunny/mist-dunny-series-4

On this page on mouseover of the image I would also like it to say out of stock, but this is a far lower priority.

http://www.openblindboxes.com/series-4-dunny

If I provide the images or if someone else can, Can someone tell me how to do this, or can this be applied to the next release. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #1 on: October 13, 2014, 01:57:49 PM »
Here is the image.  I am making it available for everyone to use.  If it needs text, just tell me the font and I will add it and upload that one as well.


Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #2 on: October 15, 2014, 12:02:43 PM »
This is a good suggestion.

I have just implemented this for v1.2 and you can see changes that you can apply in this commit history:
https://github.com/abantecart/abantecart-src/commit/5ad217351599fcdbcd8e4293a095b4ba796edbaa

NOTE: You can not replace files completely, since these changes are for v1.2.

Notes for settings:
1. Out of stock message will be show based on selection in "Out Of Stock Status" for the product.
2. If settings "Out of stock checkout" is ON, regular add to cart will be always shown REGARDLESS of stock status
« Last Edit: October 15, 2014, 12:06:03 PM by abantecart »
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #3 on: October 15, 2014, 01:39:08 PM »
Awesome, the screen shot looks perfect.  When is 1.2 supposed to be released?

So I see the changes, but I am not sure how to apply them now?  If I am not too skilled should I not do this myself?

I can replace complete files, but I don't seem to understand how to find those files, now.  I am totally fine waiting if I have to.  I am just excited this is coming. 

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #4 on: December 29, 2014, 11:36:19 AM »
Hello,

I have upgraded to 1.2 and this functionality does not seem to be working.   

Here is a link to an item that is Out of Stock as you can see in the details, but the button still shows add to cart.  I have out of stock ordering set to NO. 

http://www.openblindboxes.com/29-degrees-series-2-fatcap

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #5 on: December 31, 2014, 09:11:30 AM »
Are you sure you replaced your template files?
Also check your settings.

Here is the link demo with product that works
http://demo.abantecart.com/index.php?rt=product/product&path=43_45&product_id=107
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #6 on: December 31, 2014, 09:33:06 AM »
I did a core upgrade to 1.2.   The whole back end is changed.   Is there an extension I am supposed to apply, I have no additional download templates, only the original that comes with the cart?.

Here is the settings I have set up.




Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #7 on: January 14, 2015, 09:55:51 AM »
 This is now my number 1 issue with 1.2

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1796
  • Karma: +519/-7
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #8 on: January 14, 2015, 10:19:15 AM »
Well Dark-  perhaps if you were looking in the correct place you would find what is missing.  It was in the same place in 1.1.9 too.

the Out of Stock parameter is set per item and is on each of the product pages.  the field is called  Block Product from Ordering.

Lee


Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #9 on: January 14, 2015, 11:49:01 AM »
No this is new functionality that was part of 1.2, not part of 1.19

I do not want to block ordering of items that are in stock.  I want the button to change to out of stock for an item that is out of stock instead of add to cart, like it shows in the top of this post. 

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1796
  • Karma: +519/-7
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #10 on: January 14, 2015, 12:16:41 PM »
It works exactly like this on my sites and on the demo abantecart-

http://docs.abantecart.com/pages/catalog/products/inventory.html

Out Of Stock Status ( or Out of stock message "In Stock, Out Stock, Pre-Order")
  --> Message shown if stock in product or options will drop to 0 or below. This message is always show if out of stock condition is met for stock trackable products or options. Located in product edit page http://docs.abantecart.com/pages/settings/general.html
If you do not want to see this message set product and all options to be stock trackable off.
 
« Last Edit: November 01, 2016, 08:20:54 AM by Basara »

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #11 on: January 14, 2015, 01:10:06 PM »
Right, just like mine is set as it shows in the pictures above.  Which is why it is now my #1 issue for 1.2 it does not work for me.

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #12 on: January 14, 2015, 01:29:41 PM »
abantecart says above did I update my templates...

I did a core update.

So I don't know if it updated my templates.  There is no option to reinstall 1.2, or repair 1.2 and I see no options to update templates so I do not know if this is what is broken, and I have not received an answer about how to update or fix it.


You can look at my site and see if it looks like the templates have not been updated.  openblindboxes.com
« Last Edit: January 14, 2015, 01:36:14 PM by thedarksyde »

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1796
  • Karma: +519/-7
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #13 on: January 14, 2015, 06:19:55 PM »
I still think you are in the wrong place.   Your screen shots are of System > Settings  pages,

This feature is controlled in the product page.  These screen shots are from the demo.

Offline thedarksyde

  • Full Member
  • ***
  • Posts: 131
  • Karma: +7/-1
    • View Profile
Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
« Reply #14 on: January 14, 2015, 07:12:59 PM »
Yes that is how my product pages are set up. 



And here is a link to that item on my page.

http://www.openblindboxes.com/29-degrees-series-2-fatcap

 

Powered by SMFPacks Social Login Mod