5. FAQ

Here the frequenlty asked question about EPV

Note : the grounped products and bundle products are not managed for custom message.

1. How do I modify the CSS and block for custom message?

To edit the block of custom availability message (HTML element) and CSS you must edit some files :

  • Frontend CSS are stored into :

skin/frontend/base/default/css/EnhancedProductAvailability.css

edit this file to modify the CSS of the “EPV” classes.

  • admin CSS :

skin/adminhtml/base/default/css/EnhancedProductAvailability.css

do the same for magento admin panel CSS.

  • Block for simple product view :

go into : app/design/frontend/default/default/template/catalog/product/view/type/simple.phtml + default.phtml

Edit this file to change the HTML code such as

Carreful :

  • Make a backup of the file before edit it.
  • Dont remove the PHP code, if you are lost in the code, create a ticket into your boostmyshop account to get help or ask for a customization in an other ticket.
  • You must keep the sameID for the div id=”div_custom_stock”

Note : keep the same class name if you want to apply the CSS, unless you have modified the CSS class name.

-** Block for configurable product view :**

The HTML code for the configurable product are provided by a PHP file, and are contained inside the DIV

 comming from default.phtml or simple.phtml (see Block for simple product view).

Here the PHP file that contain the HTML code : app/code/community/MDN/EnhancedProductAvailability/controllers/FrontController.php

Html code start from line 38 to 43. Edit it to change the rendered message into the configurable product.

Carreful :

  • Make a backup of the file before edit it.

Note : if you are lost in the code, create a ticket into your boostmyshop account to get help or ask for a customization in an other ticket.

1. How do I modify the CSS and block for custom message?

To edit the block of custom availability message (HTML element) and CSS you must edit some files :

  • Frontend CSS are stored into :

skin/frontend/base/default/css/EnhancedProductAvailability.css

edit this file to modify the CSS of the “EPV” classes.

  • admin CSS :

skin/adminhtml/base/default/css/EnhancedProductAvailability.css

do the same for magento admin panel CSS.

  • Block for simple product view :

go into : app/design/frontend/default/default/template/catalog/product/view/type/simple.phtml + default.phtml

Edit this file to change the HTML code such as

Carreful :

  • Make a backup of the file before edit it.
  • Dont remove the PHP code, if you are lost in the code, create a ticket into your boostmyshop account to get help or ask for a customization in an other ticket.
  • You must keep the sameID for the div id=”div_custom_stock”

Note : keep the same class name if you want to apply the CSS, unless you have modified the CSS class name.

-** Block for configurable product view :**

The HTML code for the configurable product are provided by a PHP file, and are contained inside the DIV

 comming from default.phtml or simple.phtml (see Block for simple product view).

Here the PHP file that contain the HTML code : app/code/community/MDN/EnhancedProductAvailability/controllers/FrontController.php

Html code start from line 38 to 43. Edit it to change the rendered message into the configurable product.

Carreful :

  • Make a backup of the file before edit it.

Note : if you are lost in the code, create a ticket into your boostmyshop account to get help or ask for a customization in an other ticket.

2. I use a custom template!

You have installed a custom template to highlight your Magento design ?

And the Enhanced Product Availabilty extension did not work ?

Here the way to handle :

  • Activate the template Hints & path into your magento admin panel : system > configuration > developper
  • Now choose the Website or store view which you want to resolve the issue
  • Open section “Developer Client Restriction” and put your world wild web IP (find it here http://whatismyipaddress.com)
  • Open section “Debug” and set to “yes” this twice options : Template Path Hints + Add Block Names to Hints
  • Then refresh Magento caches, go back on the freonted page according to the configured website, you will see lot of red tab, find the tab that macth with the location where you want to add “custom stock message”.
  • Make a backup of this file (in an other location of just near to the original), and edit the original file.
  • You must locate into the PHP / HTML code the location where you want to add “customl stock message”
  • Then copy/past the content of the file :app/design/frontend/default/default/template/catalog/product/view/type/simple.phtml

and put it into your original phtml file, you may have to remove line 1 to 10 of “default.phtml” to adapt the code with yours.

  • Go back into the configuration to disable the template hint & path ( system > configuration > developper )
  • Refresh the magento caches
  • Move into a simple product page and see the result (you may have to edit again your phtml file)

Note :

If you are lost in the code, create a ticket into your boostmyshop account to get help or ask for a customization in an other ticket.

You can restore original phtml if your frontend view is broken.

3. Admin panel Catalog Grid

I already use some extensions for my Magento admin panel regarding Catalog Grid how do I proceed ?

Our extension may encounter some issue with existing grid stuff, to manage them :

  1. disable the admin catalog grid for the Enhanced product availability in system > configuration > catalog
  2. resolve the conflict for the existing extensions by making class inheritance , look at the boostmyshop extension “extension conflict” to get graphical help regarding inner Magento conflict.

if you use ERP extension see next page (4).

4. I use ERP extension

The catalog product grid in admin doesnt show stock range, how to handle?

  • Maybe an other extension which overwrite this page is already in action ?

  In case of Embedded ERP follow the steps describe next or install extention conflict to handle it.

Edit file : app/code/community/MDN/AdvancedStock/etc/config.xml

Then remove or comment code :

MDN_AdvancedStock_Block_Adminhtml_Catalog_Product_Grid

to comment replace the line by : <!–

MDN_AdvancedStock_Block_Adminhtml_Catalog_Product_Grid –>