Dear All
I hope this is of some help as I have been working on this for a while. I would also like to credit Bangers for helping me debug it.
This amendment will allow you to have buttons in the push button grid replaced with an out of stock graphic, thereby stopping customers clicking on an out of stock item and getting that annoying 'your choice is not available' screen.
This code also includes the fix to the product reference problem posted by Norm at:
http://community.actinic.com/showthread.php?t=35114
It also includes the code in the thread below which puts the table into rows when there is only one attribute:
http://community.actinic.com/showthread.php?t=28012
This amendment alters the push button grid layout and the actinic_main.php. Please save copies of these before you proceed. Also, please note for the changes in the actinic_main.php to take effect you will have to close actinic and restart it.
First of all open the 'Add to cart Push Button' layout and replace all of the code with the code in the text file below.
When you have done that you will need to create two new layouts and selectors.
I am going to assume some knowledge on this and describe this briefly.
Create one layout for the smaller add cart button and one for the out of stock graphic. This can be done by going into the library under 'Add to Cart Button' and making copies of the 'Add to Cart Button Image' layout and renaming them 'PushButtonGridButton' and 'ButtonOutOfStock'.
Then create the selectors by copying the AddToCartButton and renaming them 'PushButtonGridButton' and 'ButtonOutOfStock' making sure they are set to the relevant layouts.
Once you have done that close actinic and copy the code from the actinic_main.txt below and replace all of the code in actinic_main.php which you will find in C:\Program Files\Actinic v8. Don't forget to back your original version!!
Once complete, restart actinic and it should all be working for you. You will see from the code that you have more options to customise the look and feel yourself to make it work for you.
Billy
I hope this is of some help as I have been working on this for a while. I would also like to credit Bangers for helping me debug it.
This amendment will allow you to have buttons in the push button grid replaced with an out of stock graphic, thereby stopping customers clicking on an out of stock item and getting that annoying 'your choice is not available' screen.
This code also includes the fix to the product reference problem posted by Norm at:
http://community.actinic.com/showthread.php?t=35114
It also includes the code in the thread below which puts the table into rows when there is only one attribute:
http://community.actinic.com/showthread.php?t=28012
This amendment alters the push button grid layout and the actinic_main.php. Please save copies of these before you proceed. Also, please note for the changes in the actinic_main.php to take effect you will have to close actinic and restart it.
First of all open the 'Add to cart Push Button' layout and replace all of the code with the code in the text file below.
When you have done that you will need to create two new layouts and selectors.
I am going to assume some knowledge on this and describe this briefly.
Create one layout for the smaller add cart button and one for the out of stock graphic. This can be done by going into the library under 'Add to Cart Button' and making copies of the 'Add to Cart Button Image' layout and renaming them 'PushButtonGridButton' and 'ButtonOutOfStock'.
Then create the selectors by copying the AddToCartButton and renaming them 'PushButtonGridButton' and 'ButtonOutOfStock' making sure they are set to the relevant layouts.
Once you have done that close actinic and copy the code from the actinic_main.txt below and replace all of the code in actinic_main.php which you will find in C:\Program Files\Actinic v8. Don't forget to back your original version!!
Once complete, restart actinic and it should all be working for you. You will see from the code that you have more options to customise the look and feel yourself to make it work for you.
Billy
Comment