Replacing values in a vendor product card for Multi-Vendor

The module replaces the values for the products of the selected category and its subcategories.

SCOPE OF APPLICATION

Suitable for stores with a large number of sellers, where you need to standardize the values of categories and subcategories.


APPLICATION EXAMPLE

The vendor downloads a file in which it uses its values, the module automatically changes them to those set by the marketplace.


SPECIFICATIONS
  • Hides the price of several items;
  • Changes the value of the quantity of goods;
  • Standardizes values;
  • Changes the names of the buttons for sale.



SERVER PRELIMINARY SETTINGS

For the module to work correctly, it is necessary to make settings on the server.

Price template price.tpl 

In file:

design/themes/responsive/templates/common/price.tpl

In the first line add:

{hook name="products:prices_tpl_mw_begin"}{/hook}

On the last line add:

{hook name="products:prices_tpl_mw_end"}{/hook}




Product card template product_data.tpl

In file:

design/themes/[название темы]/templates/common/product_data.tpl

If the file is not in the folder with the showcase theme, then hiccup in the file:

design/themes/responsive/templates/common/product_data.tpl

1) Block "Old price"

After line 248 add: {hook name="products:old_price_begin"}{/hook}

After line 260 add: {hook name="products:old_price_end"}{/hook}



2) Block "Price"

After line 276 add:

{hook name="products:prices_mw_begin"}{/hook}

After line 278 add: 

{hook name="products:prices_mw_end"}{/hook}

On line 283 add:

{hook name="products:enter_your_price_begin"}{/hook} 

{hook name="products:enter_your_price_end"}{/hook}  

On line 296 add:

{hook name="products:contact_us_begin"}{/hook} 

{hook name="products:contact_us_end"}{/hook} 



3) Block "You save"

After line 334 add:

{hook name="products:you_save_begin"}{/hook} 

After line 350 add:

{hook name="products:you_save_end"}{/hook} 


4) Block "Description of electronic goods"

After line 564 add:

{hook name="products:edp_description_mw_begin"}{/hook}

After line 569 add:

{hook name="products:edp_description_mw_end"}{/hook}


"Buy in one click" button

In file:

design/themes/[название темы]/templates/addons/call_requests/hooks/products/add_to_cart.post.tpl

If the file is not in the folder with the showcase theme, then hiccup in the file:

design/themes/responsive/templates/addons/call_requests/hooks/products/add_to_cart.post.tpl

After line 6 add:

{if $product.button_buy_one_click}{assign var="but_text" value="{$product.button_buy_one_click}"}
{else}{assign var="but_text" value="{__("call_requests.buy_now_with_one_click")}"}{/if}

Replace lines 11 and 12 with:

link_text=$but_text
text=$but_text

MODULE SETTINGS

1. To configure a module, go to the "Modules" tab, in the pop-up menu, select "Modules Management" and the "MAURISWEB" section.



2. In the list that opens, select the module you are interested in and click on its name, highlighted in blue or black.


3. On the page that appears, select the "General" tab, go to the "Licensing" section and in the "License key" field, enter the license key that is available in your account at www.maurisweb.ru in the list of purchased modules and also sent to you by e-mail.



4. In the "Available domains" and "Test domains" sections, check the correctness of the specified domains. You can add additional domains by clicking on the white "Add Domain" button on the right side of the page. The total number of domains should not exceed three.




5. Go down below, select the "Basic settings" section and tick the box "Save data when removing the module" so as not to lose them when reinstalling the module.


6. Go to the "Settings" tab and check the "Hide price" box if you want to hide the price of goods with zero cost, which have "Allow add to cart" in the "Action at zero price" field.




7. Check the "Apply changes to items immediately" box if required.




8. To configure the frequency of applying changes to goods, enter the CRON command specified in the tab into the scheduler.




9. Save the module settings by clicking on the blue "Save" button at the top right of the panel.




PRIVILEGE

1. To set up privileges, select the Customers tab and the User Groups section.



2. In the list that opens, select the required group by clicking on its name, highlighted in blue.




3. In the window that opens, select the "Catalog" section and put a tick in the "Replace values in the product card" item to open access to the module's functionality.




4. Click on the blue "Save" button in the lower right corner of the panel to make your changes.



FUNCTIONALITY OF THE MODULE

1. To configure the function of replacing values, go to the "Products" tab and select the "Replace values in the product card" section.




2. On the page that opens, click the white "Add" button at the top right of the panel.




3. On the page for adding categories, select "Root level", click on the arrow to expand the list and select the desired category. For each category, it is possible to add your own settings.




4. Check the "Apply to subcategories" checkbox to apply this setting.




5. Check the "Hide price" box to hide the price of all products in the category.




6. Check the box "Replace the quantity of goods" if you need to specify the quantity of goods that are not loaded from the warehouse systems. And in the field that appears, indicate in numbers how many goods are in stock.



7. In the item "Taxes" select one of the four options for the tax form: VAT, VAT 20%, VAT 10%, VAT 0%.



8. In the "Action at zero price" field, select one of the three options:

"Do not allow adding item to cart" - items with zero value will not be added to the cart;

"Allow to add item to cart" - the item will be added to the cart, despite the zero cost;

"Ask the buyer to enter a price" - the buyer can specify his price.




9. In the "Action for out of stock" field, select one of the three options:

"Not selected" - not available;

"Pre-order" - the buyer can leave a pre-order;

"Subscribe to notifications" - the buyer will be notified when the item is in stock.


10. When you hover the mouse over the right side of the screen, three buttons will appear "Add" (in the form of a plus sign), "Copy" (two superimposed documents), "Delete" (cross). You can use them to add, copy or delete categories.




11. It is also possible to change the inscriptions "Buy", "Buy in one click", "Contact us", "Enter your price". To do this, you must enter your text in the input fields under the above designations. If you do not fill in these fields, the text will remain standard.




12. Click on the blue "New" button at the top right of the panel to complete the creation of the value replacement settings.




13. On the "Replace Values in Product Card" page, a line appears showing which category the changes were made to.



14. To apply settings for subcategories, check the "Apply to subcategories" box. Please note that if you delete a category, settings for subcategories will also be deleted.



15.To edit the category settings, hover the mouse over the right side of the panel, where a blue gear-shaped button will appear. When pressed, the line "Edit" will pop up. Click on it.




16. In order to delete a category, put a tick in the box next to its name. Next, in the upper right corner of the panel, click on the button in the shape of a blue gear and select "Delete Selected".





VERIFICATION OF THE RESULT

1. To go to the storefront, click on the button in the form of a grocery basket in the upper left corner of the panel.



2. In the window that opens, select the category that you configured earlier.



3. Select any product from the category.



4. The changes made will be reflected in the product card.




For products with a hidden price, this field will be empty.



Following pages