AbanteCart Community

Shopping Cart Operations => Support => Topic started by: thedarksyde on October 13, 2014, 01:44:33 PM

Title: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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. 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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.

(http://www.openblindboxes.com/resources/image/18/cf/9.jpg)
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: abantecart 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
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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. 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: abantecart 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
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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.

(http://i.imgur.com/LPTftj8.jpg)

(http://i.imgur.com/sUWOV3F.jpg)
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on January 14, 2015, 09:55:51 AM
 This is now my number 1 issue with 1.2
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand 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

Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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. 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand 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.
 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde 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
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand 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.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on January 14, 2015, 07:12:59 PM
Yes that is how my product pages are set up. 

(http://i.imgur.com/gVno2FP.jpg)

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

http://www.openblindboxes.com/29-degrees-series-2-fatcap
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand on January 14, 2015, 10:56:51 PM
well that does appear to be an issue for your install.

Have you tried making another fresh install in a different  dir or sub-domain  just to see if it is something with your system,  or with your upgrade site.?  I would leave the test data there at first and see.  Then you could do an sql dump and import to get your products,etc and see if that breaks something.  That would help you begin to isolate the issue.   There are some many elements,  servers, software, uses, browsers,  upgrades by the gazillions -  sometimes it seems a small miracle that anything works :o






Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on January 17, 2015, 12:57:08 PM
I could try dropping in the file with that new functionality onto the current installed file and see what that does, as well, but I do not know which one it is. Can you tell me which files it is? 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on January 22, 2015, 08:57:20 AM
Anyone know which files I would need to overwrite?
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on January 29, 2015, 02:23:03 PM
I think it is weird that no one knows which files make this new functionality occur.  So I could just drop those over the current ones to see if that fixes the issue.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 09, 2015, 12:18:45 PM
This is my weekly bump hoping to get someone to answer which files this change is a part of so I can try to drop those files again.   
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand on February 09, 2015, 02:14:10 PM
Let's try one more time -

Your screen shot from Jan 14,  does not indicate that your Out of Stock setting is ON.  The on box needs to be BLUE to indicate ON.

see this screen shot to show what it is suppose to look like when it is enabled. 

Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 10, 2015, 11:12:03 AM
Let's try one more time -

Your screen shot from Jan 14,  does not indicate that your Out of Stock setting is ON.  The on box needs to be BLUE to indicate ON.

see this screen shot to show what it is suppose to look like when it is enabled.

No that is not the function I want.  As I went over before.  You even said that I had an issue with my install (Top of this page, your reply at the top)

The picture in your most recent screen shot has nothing to do with OUT OF STOCK.  That puts a "call to order" button on the item.  That is not "Out Of Stock" nor is that automatic for each item as it goes out of stock.  Here is what that item looks like with what you said to do.

http://www.openblindboxes.com/index.php?rt=product/product&product_id=436


Here is an item that I have set up with a quantity of 0.  If you look at the product it still allows to to be Add to Cart, but the quantity is zero and it says out of stock in the details. 

http://www.openblindboxes.com/index.php?rt=product/product&product_id=397

Here are the settings for this specific item AGAIN, so that again I can show that this is an issue with the install. 

(http://i.imgur.com/vIIWf1T.jpg)

All I want is the NAME OF THE FILES and the place they go that this new functionality is a part of.  So I can take the 2.0 download and take those specific files and drop them on top of my build.  So that those files with this functionality can be replaced and the one that is not working can be replaced. 

Why doesn't anyone know that? 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand on February 10, 2015, 11:48:12 AM
Sorry that I have not been able to assist you properly.   If I had the files answer for you,  I would tell,  but I don't.

I am not an admin,  I am just another user that often has the answer to how to do things based on my long-term use of the cart.
So I will not bother to try an assist you any further -  And thanks for the Smite -  so nice to be "rewarded" for attempting to understand your issue and help you fix it.  Even the Admin suggestion didn't fix you and they know about the file structure.

I wonder if you have tried a fresh install yet, and have the same issue?  You seem to be the only one with this issue.

Best of luck in finding your resolve though.   

Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 10, 2015, 12:01:47 PM
Sorry that I have not been able to assist you properly.   If I had the files answer for you,  I would tell,  but I don't.

I am not an admin,  I am just another user that often has the answer to how to do things based on my long-term use of the cart.
So I will not bother to try an assist you any further -  And thanks for the Smite -  so nice to be "rewarded" for attempting to understand your issue and help you fix it.  Even the Admin suggestion didn't fix you and they know about the file structure.

I wonder if you have tried a fresh install yet, and have the same issue?  You seem to be the only one with this issue.

Best of luck in finding your resolve though.

Yes I have tried to make another install and it doesn't find my second database.  I have tried to multiple times and I can not get that to work.  So I am trying the file route next, which is what I am asking for. 

Every file that is part of this out of stock change, including images.  Or some way to find those files, so that I can apply them over the current file system and find which file is breaking this issue, which is a huge issue.   This is such a good thing for everyone.  Your items staying up so google can find them, but also indicate to customers that it is out of stock so that they do not get to their cart to find out it is out of stock, is huge.  I really want to fix this, so I will be updating this post weekly until I get the answer I need.  I am also reaching out to php developers but everyone says without someone that built it answering they will not be able to find the files without significant costs in the thousands.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: cgpalana on February 11, 2015, 10:17:38 AM
Hi, just a reminder latest AbanteCart 1.2 is using a Default View, there are lots of changes made in tpl files and also updates in stylesheet. If you encountered layout problem not the same with the latest layout, check again it maybe because you are using default_html5 view and changes from default view will not be overridden. Compare files from default to whatever view you are using, especially in product pages.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 11, 2015, 11:17:10 AM
So this was the issue. 

I don't understand why these updates didn't go to the HTML5 template as well.  The HTML5 template I think is far better looking than the default template and far more user friendly.  I think both templates should be updated at the same time.
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: llegrand on February 11, 2015, 06:48:22 PM
At the risk of "falling short" of your expectations - let me explain the missing information you are not taking into account.

On AbanteCart Version PRIOR to 1.2.0   the storefront that you like was named default_html5  when it was introduced.   It replaced a much earlier template called default.   The first default template is very out-dated and not well support in the high 1.1. xx versions.

 When the version 1.2.0 was released with a lot of behind coding updated to more current versions,  the highly preferred default_html5 was renamed for use in version 1.2.0 and forward to just default. 

That means all the refereneces to the template you like has a different name depending on which version you are using.

Prior to version1.2.0  the name is default_html5,   from 1.2.0 forward it is called default.

this has been explained on the forum previously.  And it is a detail that is most important.   But that is why you can't just pluck a file from 1.2.0  and place it in a 1.1.9 cart -  as the name for the template has changed.   So there really aren't two 'different' templates,  but the same template with two different names depending on the version.

I hope this helps you clarify some of your confusion.  And doesn't earn me another smite from you :) .   








Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 12, 2015, 09:41:51 AM
I am not quite sure what you are saying.  It sounds like you are saying that html5, and default are the same if you have upgraded to 1.2.0?  However I set up my home page for both, the same, and default looks really bad compared to html5, so they can not be the same so I do not quite understand what you mean. 


Attached are the two different layouts.  Named correctly.


HTML5 1.2.0
(http://i.imgur.com/aud0JzH.jpg)


Default 1.2.0
(http://i.imgur.com/ueyyVJF.jpg)
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 12, 2015, 09:54:01 AM
Couple of issues, if HTML5 was the most used template before 1.2.0 then expecting people to switch templates and attempt to fit into a new template is not something most users will want to do, nor do customers like.  Changes to page layout is one of the biggest reasons for higher bounce rates.  For fledgling businesses this is not good for them.   

Default is obviously not programmed correctly to handle more than one row of categories.   

Default is not the same set up as HTML5 and there is no clone option nor is there an option to view both at the same time.   Just to get my default layout to look like that took me like 20 minutes just for the home page going back and forth making sure they were the same, and that doesn't address all the size widths that I haven't updated yet.  Forcing change on users is not something they will like, nor obviously understand.  Never anywhere in the upgrade is it explained clearly enough that for me to use 1.2.0 properly, I have have to spend many hours retrofitting a new template.   



So based on how much I like HTML5 and how much work it will be to change to default.  I will not be changing to default any time soon, I might slowly make the change, but it seems like a lot of work for something that I see as a lesser product.

However there is something I want, and I do not know how to do it.  I would like on the page shown and all muti product pages to show the Out of stock button like on this page.   http://demo.abantecart.com/index.php?rt=product/category&path=43_45  I got it on the product page, but not the muti product pages, does anyone know how to do that? 
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on February 12, 2015, 12:17:08 PM
Here is the image of a product page with multiple rows for categories.  So I obviously can not use default until these issues are fixed.

Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: thedarksyde on May 21, 2015, 12:48:30 PM
Does 1.2.2 fix this issue for Template Default?  The issue with the category listings not all being one color?


(http://i.imgur.com/ueyyVJF.jpg)

(http://forum.abantecart.com/index.php?action=dlattach;topic=2793.0;attach=3644;image)
Title: Re: Change Add To Cart, and View to "Out Of Stock" for OOS items.
Post by: Basara on July 29, 2015, 02:06:21 AM
Hello

Issue reported to AbanteCart bug tracker https://github.com/abantecart/abantecart-src/issues/225