Quick editor

Quick editor for Shop-Script

Opens the edit window from the frontend

Question #1:
Plugin installed, but i can't find a settings, where to look?

Answer:
1. Open the backend (http://domain.com/webasyst/) -> "Shop" -> "Plugins" -> "Quick editor".
To access the settings in backend and editing products in frontend, you must have administrator rights or full access to the application "Store", or enable access to the plugin in application "Contacts".

Question #2:
After plugin was installed and enabled, code of plugin was added to the template, but no changes can not see. What could be the problem?

Answer:
1. For display a edit button in the frontend you must be logged in the backend with the rights of access to the "Shop" application.
2. Note, domain of the frontend and backend must match (log in: http://domain1.com/webasyst/ then open the frontend: http://domain1.com/).
3. Also remember about http://domain.com and http://www.domain.com - this is different domains. 4. Perhaps current theme of design is very unusual and requires an individual approach and making edits.

Question #3:
Edit button is not displayed on the product page in the frontend.

Answer:
1. Try to change the value of the "Location of «Edit» button on a product page" to other than the current one.
2. To display the edit button on the product page, at the current theme of design (usually product.html, product.cart.html) must be hook "frontend_product". An example of using the hook you can seen in the default template.
3. See also the answer to question number 2.

Question #4:
After added code of the edit button on the category page, i try to hover the cursor over the item, but the button appears at the top of the page, not on a specific product, what to do?

Answer:
In the CSS file, in the current design theme, add the following lines:
.product-list li{
position: relative;
}

Question #5:
How to provide access to the plugin to other users, without assigning administrative rights?

Answer:
You can assign a "limited access".
Open the application "Contacts", select the user that will be granted access rights, open the tab "Access", for application "Shop" select "Limited access" option..
Click "Customize" in the appeared window, scroll the page to the field "Quick editor", check the box in front of this field, click "Save".

Question #6:
In our design theme there are no hooks 'frontend_product', 'frontend_category' and 'frontend_footer' for certain reasons, how we can use plugin without standart hooks?

Answer:
You can use special hooks:

product.html:

{* QuickEditor plugin 'frontend_product' hook *}
{foreach $frontend_product as $k=>$_}
{if $k=='quickeditor-plugin'}
{$_.block}
{/if}
{/foreach}

By default, this hook is placed in a container of information about the product, if you use fixed edit button - you can put this hook in the beginning of the file.

category.html:

{* QuickEditor plugin 'frontend_category' hook *}
{foreach $frontend_category as $k=>$_}
{if $k=='quickeditor-plugin'}
{$_}
{/if}
{/foreach}

This hook can be placed in the beginning of the file.

footer.html:

{* QuickEditor plugin 'frontend_footer' hook *}
{foreach $frontend_footer as $k=>$_}
{if $k=='quickeditor-plugin'}
{$_}
{/if}
{/foreach}

This hook can be placed in the beginning of the file.

Question #7:
After updating the plugin by clicking on the "Edit" button - opens page 404 (or main page), what is the reason?

Answer:
Check hook frontend_footer in footer.html file.
If hook is not exists, add a standard hook or:

{* QuickEditor plugin 'frontend_footer' hook *}
{foreach $frontend_footer as $k=>$_}
{if $k=='quickeditor-plugin'}
{$_}
{/if}
{/foreach}

This hook can be placed in the beginning of the file.