Hide a product editing menu at front store My Seller Account
Posted: Wed May 08, 2013 11:43 pm
Some customers have asked for information on how to hide certain menus/steps on the product editing page to make the system simpler to use.
Here, we introduce one way to help implement this.
A. Available menus/steps/pages
Here are available menus and pages on the product management page at My Seller Account --> Products tab :
1. Information
2. Images
3. Features
4. Associations
5. Prices(Discounts)
6. Quantity(Stock)
7. Combinations
8. Virtual Product
9. Shipping
10. Attachments
B. Here is an example code change to to hide menu 3 and menu 4
You will need to make these changes in following file:
For prestashop 1.5x
/modules/agilemultipleseller/views/templates/front/products/product_top.tpl
For PrestaShop 1.6x
/modules/agilemultipleseller/views/templates/front/products/product_nav.tpl
Replace the following lines:
CODE: SELECT ALL
{foreach from=$product_menus item=menu}
<option value="{$menu.id}" {if $menu.id==$product_menu}selected{/if}>{$menu.name}</option>
{/foreach}
With the lines below:
CODE: SELECT ALL
{foreach from=$product_menus item=menu}
{if $menu.id !== 3 AND $menu.id !== 4}
<option value="{$menu.id}" {if $menu.id==$product_menu}selected{/if}>{$menu.name}</option>
{/if}
{/foreach}
C. Change Menu Name
Further more, after hiding menu option 3 and menu option 4, you will see the rest of the menu names with numbers are not in contiguous order.
You can change menu display name by using the translation system to modify the text at back office Localization --> Translation --> Translate installed modules
Hope this helps...
Here, we introduce one way to help implement this.
A. Available menus/steps/pages
Here are available menus and pages on the product management page at My Seller Account --> Products tab :
1. Information
2. Images
3. Features
4. Associations
5. Prices(Discounts)
6. Quantity(Stock)
7. Combinations
8. Virtual Product
9. Shipping
10. Attachments
B. Here is an example code change to to hide menu 3 and menu 4
You will need to make these changes in following file:
For prestashop 1.5x
/modules/agilemultipleseller/views/templates/front/products/product_top.tpl
For PrestaShop 1.6x
/modules/agilemultipleseller/views/templates/front/products/product_nav.tpl
Replace the following lines:
CODE: SELECT ALL
{foreach from=$product_menus item=menu}
<option value="{$menu.id}" {if $menu.id==$product_menu}selected{/if}>{$menu.name}</option>
{/foreach}
With the lines below:
CODE: SELECT ALL
{foreach from=$product_menus item=menu}
{if $menu.id !== 3 AND $menu.id !== 4}
<option value="{$menu.id}" {if $menu.id==$product_menu}selected{/if}>{$menu.name}</option>
{/if}
{/foreach}
C. Change Menu Name
Further more, after hiding menu option 3 and menu option 4, you will see the rest of the menu names with numbers are not in contiguous order.
You can change menu display name by using the translation system to modify the text at back office Localization --> Translation --> Translate installed modules
Hope this helps...