[Nulled] » Nulled Warez Scripts » CMS Internet shop Scripts » SimplaCMS script » Purchase price for the product variant
November 14 2022

Purchase price for the product variant

Everything is in the repository, write if you need tags in the admin panel and on the site. It is also implemented for each product its own tags in the catalog and on the product page. If you need a purchase price and its difference in the admin panel: in the catalog and on the product page, write, I will send instructions.

Here's how to make a purchase:
Code:
Purchase price for a product variant


kovalevsky - THANK YOU!!!!

I did it by analogy but for a more recent version

1. Add a new column in the database to the S_Variants table
(via phpmyadmin after price on price_opt float(14,2) )

2. Then edit /simpla/design/html/product.tpl

In the list <ul id="header">

after the line
<li class="variant_price">Price, {$currency->sign}</li>  
insert
<li class="variant_price_opt">Wholesale price, {$currency->sign}</li>  


In the <div id="variants"> tag

after the line
<li class="variant_price">     <input name="variants[price][]" type="text" value="{$variant->price|escape}" /></li>
insert
<li class="variant_price_opt">     <input name="variants[price_opt][]" type="text"   value="{$variant->price_opt|escape}" /></li>

Next, in order to be displayed on the new options, we find
<ul id=new_variant style='display:none;'>
We insert by analogy
<li class="variant_price_opt">     <input name="variants[price_opt][]"         type="text"   value="{$variant->price_opt|escape}" /></li>

Let's add stylistics so that everything is displayed normally
Editing /simpla/design/css/style.css

Add
#variants_block li.variant_price_opt { width: 120px; }
#variants_block li.variant_price_opt input {
    width: 95px;
    font-size: 15px;
    font-weight: bold;
    color: #000;
}


3.  /simpla/ProductAdmin.php

At the beginning of the main function inside
"if($this->request->method('post') &&!empty($_POST)) {"

adding:
$product->price_opt= $this->request->post('price_opt');
    $price_opt= $this->request->get('price_opt');
4. api\variants.php
Find 2 (two) v.price after them add v.
price_opt v.brend_price

I didn't do it
api/Products.php adding
p.cena2 by analogy

Adding product.tpl and products.tpl to the template {$v->price_opt}

There are a few more options, like I did it for myself.

Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

  • Author of the publication: blackcms
  • Date of publication: 14 November 2022 13:51
  • Publication category(s): SimplaCMS script»,Modules SimplaCMS
  • Number of views of the publication: 279
  • Number of comments to the publication: 0

Related News

14 November 2022
SimplaCMS script»,Modules SimplaCMS
Adding Youtube videos to

Adding Youtube videos to the product

Read more
12 November 2022
Magento script»,Modules Magento
Magento exchange with 1C

I propose this topic for releases of only existing full-fledged mechanisms or exchange modules 1c - Magento.

Read more
14 November 2022
SimplaCMS script»,Modules SimplaCMS
the bucket entry module

Saving the basket in the database

Read more
14 November 2022
OpenCart script»,OpenCart modules
Universal Import/Export

Universal Import/Export Pro is a versatile and powerful module that will allow you to easily import or export a

Read more
14 November 2022
SimplaCMS script»,Modules SimplaCMS
OpenGraph markup for

OpenGraph markup for Simpla CMS

Read more

Information

Users of 🆅🅸🆂🅸🆃🅾🆁 are not allowed to comment this publication.

Site Search

Site Menu


☑ Websites Scripts

Calendar

«    November 2024    »
MonTueWedThuFriSatSun
 123
45678910
11121314151617
18192021222324
252627282930 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +4 Total articles 6747
  • +13 Comments 4083
  • +29 Users : 5817