Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Adik

Members
  • Content Count

    76
  • Joined

  • Last visited

  • Days Won

    1

Adik last won the day on April 26 2019

Adik had the most liked content!

Community Reputation

13 Good

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Are you planning to add support for csv files in the this year? Many vendors export their data in this format.
  2. Do you have any idea what else can be checked? Can the datakick module be used to check stock levels from an external xml file (access via FTP) and then change the status of products?
  3. After placing your code in AdminProductsController.php I have: Array ( [ext_warehouse] => 1 ) END
  4. I checked on the second store, which was updated several times - saving by the admin panel also does not work. How can I find out what is causing the problem? Disable each module?
  5. Ok, now it's works when I've added parent::copyFromPost($object, $table); Unfortunately only in test store. 😶 In the production shop (also ThirtyBees v1.1.0, I've use Cloudflare), when I save in admin panel product Qty tab the values in the tb_product table do not change. What's wrong here? If I change the values in the tb_product table, they are read correctly in the admin panel product tab... Code is 1:1 copied. File cache/class_index.php was deleted. Another difference that reminded me. The test store was installed from the 1.1.0 installer, the production version was updated several times (initial is 1.0.2) Production store - Obsolete files (11) admin/go-to-product.php admin/ajax-load-states-form.php admin/go-to-customer.php admin/ajax-get-order-details.php admin/CoreUpdaterBackup-2020-10-10--17-37-06 admin/ajax-get-immediate-orders.php admin/ajax-set-order-state.php admin/ajax-get-orders-fields.php admin/ajax-update-shipping-number.php Peter - do you have any idea what could be the reason for this? 😥
  6. Hello Petr, Thank you, could you look what's wrong with override/controllers/admin/AdminProductsController.php the translations in the fields below (Products->Quantities) are not saved anymore Displayed text when in-stock Displayed text when backordering is allow protected function copyFromPost(&$object, $table) { if ( $this->isTabSubmitted( 'Quantities' ) ) { if ( $this->checkMultishopBox( 'ext_warehouse', $this->context ) ) { $object->ext_warehouse = (int) Tools::getValue( 'ext_warehouse' ); } } }
  7. Hello, I would like to create an additional checkbox in the Quantities tab on Admin Product Page. After checking the Ext_warehouse checkbox, the information on the product's availability in external storage will appear on the product page. So much for the theory, below the code 🙂 quantities.tpl <div class="form-group"> <div class="col-lg-1"> <span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="ext_warehouse" type="checkbox" multilang="false"}</span></div> <label class="control-label col-lg-2" for="ext_warehouse"> <span class="label-tooltip" data-toggle="tooltip" title="{l s='external Warehouse'"> {l s='external Warehouse'} </span> </label> <div class="col-lg-9"> <input class="admin-form-check form-control" type="checkbox" id="ext_warehouse" name="ext_warehousee" value="1" {if $product->ext_warehouse}checked{/if}/> </div> </div> added to override/classes/Product.php: public $ext_warehouse = false; function __construct( $id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null ) { Product::$definition['fields']['ext_warehouse'] = array('type' => self::TYPE_BOOL, 'lang' => false, 'validate' => 'isBool'); } I've created override/controllers/admin/AdminProductsController.php: class AdminProductsController extends AdminProductsControllerCore { protected function copyFromPost(&$object, $table) { if ( $this->isTabSubmitted( 'Quantities' ) ) { if ( $this->checkMultishopBox( 'ext_warehouse', $this->context ) ) { $object->ext_warehouse = (int) Tools::getValue( 'ext_warehouse' ); } } } } Unfortunately, an error appears on the product page: Product not found There's also error on Admin product page: The object cannot be loaded (or found)
  8. Adik

    Cloudflare down

    Cloudflare has not been running for more than 10 minutes. Thousands of websites using their services also.... 502 Bad Gateway cloudflare
  9. Petr, I would like to display in e-mail all products added by customer to the created cart. So I need the SELECT query and two tables: tb_cart and tb_cart_product.
  10. Hello, you need to install also Redis server on your VPS: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-debian-9
  11. Hello Petr, thanks for another great addon I've created a simple notification: send new email when the customer creates a shopping cart. In the email template I can only insert the cart ID. I wonder if it is possible to add a list products that the customer added to the basket? Do you plan to extend the plugin with SQL queries?
  12. Try this: {if $lang_iso == en && if $category->name == 'Category 1'} <script src="https://XXXXXXXXXXXXXXXXXXXd=37" type="text/javascript" charset="utf-8"></script> {elseif $lang_iso == de && if $category->name == 'Category 2'} <script src="https://XXXXXXXXXXXXXXXXXXXd=40" type="text/javascript" charset="utf-8"></script> {else $lang_iso == fr && if $category->name == 'Category 3'} <script src="https://XXXXXXXXXXXXXXXXXXXd=42" type="text/javascript" charset="utf-8"></script> {/if}
  13. You can try edit header.tpl file and add: {if $lang_iso == en } script src="https://XXXXXXXXXXXXXXXXXXXd=37" type="text/javascript" charset="utf-8"></script> {elseif $lang_iso == de} script src="https://XXXXXXXXXXXXXXXXXXXd=40" type="text/javascript" charset="utf-8"></script> {/if}
  14. Adik

    Best import module

    Problem is with coding during import, instead of polish diacritics we have a bushes. You may need to save the encoding format in the first line of the *.csv file. I use Ron'sEditor and he has this option. The best csv editor I've used so far. https://www.ronsplace.eu/Products/RonsEditor
  15. Ok, thanks for clarification! In the field where you gave localhost:8080 we put the address of the correct server url?
×
×
  • Create New...