Hide a product editing menu at front store My Seller Account

In this board, we will periodically list various tips and tricks we find that may help in your use of PrestaShop. This will also include tips on the use of Agile modules. If you have a great tip, fix, or workaround for a PrestaShop feature, feel free to post it here...

Hide a product editing menu at front store My Seller Account

Postby shokinro » 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...
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: Hide a product editing menu at front store My Seller Acc

Postby adrian.torj_3468 » Tue Jan 28, 2014 11:32 pm

Hi, can I hide a specific field from a menu? not the entire menu. Thanks.
adrian.torj_3468
 
Posts: 10
Joined: Sun Jan 05, 2014 11:56 am

Re: Hide a product editing menu at front store My Seller Acc

Postby shokinro » Wed Jan 29, 2014 1:16 am

thanks for your inquiry

Hi, can I hide a specific field from a menu? not the entire menu. Thanks.

what do you mean specific field?

If you just want to hide a field in the page, you can use stlye="display:none;" to hide a specific field.

for example:
Code: Select all
<input type="textbox" name="city" stlye="display:none;">
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: Hide a product editing menu at front store My Seller Acc

Postby adrian.torj_3468 » Wed Jan 29, 2014 1:37 pm

Your assumption was correct. This is what I've wanted. Thanks.
adrian.torj_3468
 
Posts: 10
Joined: Sun Jan 05, 2014 11:56 am

Re: Hide a product editing menu at front store My Seller Acc

Postby happeningnow94_3364 » Fri Jun 06, 2014 7:14 am

Could you explain how can one merge some sellers product tab. For prestahop 1.6. Most sellers dont really want to be clicking a lot of tabs just to create a product.

Merge product information + shipping + product image to become one page--- Is this possible and how can one do this, so that after product SEO ,then shipping info then image and then save on one page

hopefully this would be easy.
happeningnow94_3364
 
Posts: 2
Joined: Thu Jan 23, 2014 2:20 am

Re: Hide a product editing menu at front store My Seller Acc

Postby shokinro » Fri Jun 06, 2014 11:53 am

thanks for your inquiry.

PrestaShop product manage functions is quite complicated. there are a lot of information, that why we separate them into different tabs.
Just like prestashop back office catalogue - products menu, it is the same.

It is possible to merge them into one, but it will not be that easy. you need to merge all code together and especially the GUI.
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: Hide a product editing menu at front store My Seller Acc

Postby happeningnow94_3364 » Fri Jun 06, 2014 4:25 pm

Thank You very well for quick response and understandable.
happeningnow94_3364
 
Posts: 2
Joined: Thu Jan 23, 2014 2:20 am

Re: Hide a product editing menu at front store My Seller Acc

Postby shokinro » Sat Jun 07, 2014 3:03 am

your very welcome!
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: Hide a product editing menu at front store My Seller Acc

Postby philandheatherj_3989 » Tue Jul 15, 2014 5:01 pm

I'm not seeing the code above in the product_top.tpl file. I just updated to the latest version of Multiple Seller. Is it somewhere else or does the code need to be different? Thanks!
philandheatherj_3989
 
Posts: 11
Joined: Mon May 19, 2014 3:17 am

Re: Hide a product editing menu at front store My Seller Acc

Postby shokinro » Wed Jul 16, 2014 12:12 am

thanks for using our modules.

I'm not seeing the code above in the product_top.tpl file. I just updated to the latest version of Multiple Seller. Is it somewhere else or does the code need to be different? Thanks!



For prestashop 1.6x, it should be in following file
/modules/agilemultipleseller/views/templates/front/products/product_nav.tpl
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Next

Return to Tips and Tricks for PrestaShop and Agile Modules

Who is online

Users browsing this forum: No registered users and 0 guests