Home › Forums › General Help › add to cart button problem
- This topic has 41 replies, 2 voices, and was last updated 12 years, 9 months ago by Mike.
-
AuthorPosts
-
January 19, 2012 at 9:00 pm #4606MikeGuest
A while ago I followed your instruction to replace the add to cart button with a custom button saying out of stock. This works fine in google chrome but I have had some customers complain that it looks messed up in internet explorerer. I checked it out a few days ago and it looks like you can see both out of stock and add to cart together on the button. Is there any way to fix this? Thanks.
January 20, 2012 at 12:45 am #4607KelvinKeymasterHow about you check out DukaPress 2.3.5? This problem is fixed (meaning that the “out of stock” is generated by the software default)
January 20, 2012 at 7:35 pm #4618MikeGuestIs this an official update? I would prefer to update through wordpress itself.
January 24, 2012 at 5:29 pm #4643MikeGuestIs there any way to change the color of the out of stock button?
January 24, 2012 at 6:59 pm #4645KelvinKeymasterIt is now officially released so please upgrade to 2.3.5
As for the out of stock button, it should be possible to change color by CSS (using ideas similar to those here: http://dukapress.org/blog/2011/03/18/replacing-add-to-cart-with-out-of-stock/ )
Something like this should work:
.dpsc_submit_button:disabled{
background-color:#999999!important;
}Where #999999 is your color code.
Specifically:
January 25, 2012 at 7:39 am #4647MikeGuestany other ideas? that didnt work.
January 25, 2012 at 5:18 pm #4654KelvinKeymasterIt should work! Thanks for being persistent at this, it led to the discovery of a tiny, tiny bug that was preventing this (just changing one line of php).
Line 210 of dp-products.php should be:
if ($dp_shopping_cart_settings[‘dp_shop_inventory_soldout’] === ‘yes’ && $all_custom_fields[‘currently_in_stock’][0] < 1) { Unfortunately it is a small bug and if you want to wait for the *offical release to fix, it may take a little while. If you are not comfy with changing the code, please get the file from here: http://plugins.svn.wordpress.org/dukapress/trunk/php/January 25, 2012 at 6:01 pm #4655MikeGuestHmm, still didn’t work. When i refresh i see the color change but then goes right back to the same color as add to cart. I restarted my webserver, deleted my cache and still does the same thing.
January 25, 2012 at 8:30 pm #4656KelvinKeymasterMay I see the site please?
January 25, 2012 at 9:05 pm #4657January 26, 2012 at 1:47 am #4659KelvinKeymasterHmm, the problem is that your theme is made in a way that it overides what were trying to do
I think skin.css line 257
Please try and use this instead:
.dpsc_submit_button:disabled {
background-color: #345!important;
background: none!important;
}Please tell me if this works?
January 26, 2012 at 6:01 am #4661Mike61704GuestWell that changed it but now its just grey, no matter what number I put in it does not change.
January 26, 2012 at 6:09 am #4662Mike61704Guestahh, i changed it to this and it worked!!
.dpsc_submit_button:disabled {
background-color: #345!important;
background: #345!important;
}Could this be a reason why my order logs dont show up? now that I think about it, remember when I was having this issue and you guys couldnt figure it out? Could the skin be preventing the display of the orders? Other than that this would be perfect.
January 26, 2012 at 10:14 am #4666KelvinKeymasterYs, it is very possible that your active theme (or even an active plugin) has something (normally tiny javascript errors) that cause the malfunction.
Also, I am SUPER glad it finally worked 🙂
January 27, 2012 at 8:06 am #4673Mike61704Guesthow hard would it be to track down why my orders are showing up?
-
AuthorPosts
- The topic ‘add to cart button problem’ is closed to new replies.