http://www.opencart.com/index.php?route ... on_id=5826
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
My oc version is V 1.5.3.1
I have try to input `model` & `sku` in admin-end > Catalog > options > option name > enter one option >, then I got the following error.
Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error No: 1064
INSERT INTO option_value_description SET option_value_id = '64', language_id = '1', option_id = '11', name = 'Big', `model` = 'Big001', `sku` = 'Big001', in C:\xampp\htdocs\r002\system\database\mysql.php on line 49
Could you tell me how to fix it?
Thanks a lot! ^@^
Hi straightlight,
My oc version is V 1.5.3.1
I have try to input `model` & `sku` in Catalog - options - option name, then I got the following error.
Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error No: 1064
INSERT INTO option_value_description SET option_value_id = '64', language_id = '1', option_id = '11', name = 'Big', `model` = 'Big001', `sku` = 'Big001', in C:\xampp\htdocs\r002\system\database\mysql.php on line 49
Could you tell me how to fix it?
Thanks a lot! ^@^
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
First of All, thanks! =D
My problem is this: The form to fill with the SKU information on options doesn't show up.
And when I enter in Options admin this error shows:
Code: Select all
Notice: Undefined index: model in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 420Notice: Undefined index: sku in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 421Notice: Undefined index: model in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 420Notice: Undefined index: sku in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 421Notice: Undefined index: model in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 420Notice: Undefined index: sku in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 421Notice: Undefined index: model in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 420Notice: Undefined index: sku in /home/storage/f/65/3d/fashion52weeks/public_html/vqmod/vqcache/vq2-admin_controller_catalog_option.php on line 421
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
-- Documentation --
--------------------------
(because the steps provided thus far a not adequate for the lay-person):
Tested on VQMod 2.2 w/ OpenCart 1.5.4
1) Make sure that VQMod is installed properly:
http://yourdomain.com/vqmod/install/ If it does not say that it is installed, then install it and come back.
2) Upload the contents of the upload folder to your site directory. Just drag and drop into a tool like FileZilla. (by default, it will not overwrite the matching folders, but add the new files to them).
3) Open a MySQL client such as TOAD or PhpMyAdmin. Run the following where my_db is the database that you installed OpenCart into. Note that some people might have opted to add a prefix to the tablenames. I did not, but check to see if you need that. i.e. "my_db.OC_option_value":
ALTER TABLE my_db.option_value ADD model VARCHAR(64) COLLATE utf8_bin NOT NULL;
ALTER TABLE my_db.option_value ADD sku VARCHAR(64) COLLATE utf8_bin NOT NULL;
ALTER TABLE my_db.order_option ADD model VARCHAR(64) COLLATE utf8_bin NOT NULL;
ALTER TABLE my_db.order_option ADD sku VARCHAR(64) COLLATE utf8_bin NOT NULL;
3) Then go back to your file system (FTP, SSH, etc.) and from the main directory go to vqmod/xml/options_model_sku.xml
REPLACE:
<file name="admin/model/catalog/option.php">
<operation>
<search position="after" index="1"><![CDATA[image = '" . $this->db->escape($option_value['image']) . "',]]></search>
<add><![CDATA[
`model` = '" . $this->db->escape($option_value['model']) . "', `sku` = '" . $this->db->escape($option_value['sku']) . "',
]]>
</add>
</operation>
WITH:
<operation>
<search position="before" index="1"><![CDATA[[sort_order]]]></search>
<add><![CDATA[
<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][model]" value="<?php echo (!empty($option_value['model'])) ? $option_value['model'] : ''; ?>"></td>
<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][sku]" value="<?php echo (!empty($option_value['sku'])) ? $option_value['sku'] : ''; ?>"></td>
]]>
</add>
</operation>
REPLACE:
<operation>
<search position="before" index="2"><![CDATA[[sort_order]]]></search>
<add><![CDATA[
html += '<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][model]"></td>';
html += '<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][sku]"></td>';
]]>
</add>
</operation>
WITH:
<operation>
<search position="before" index="2"><![CDATA[[sort_order]]]></search>
<add><![CDATA[
html += '<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][model]"></td>';
html += '<td class="left"><input type="text" name="option_value[<?php echo $option_value_row; ?>][sku]"></td>';
]]>
</add>
</operation>
4) Logout of OpenCart. Clear cache in your browser. Log back in. Go to Catalog>Options. Insert and option and you will see Model and SKU columns. Now you can have true configurable products.
Note: I have not tested how this looks in the invoices yet.
Hope this helps!
yet i cannot see anything in the options. im running 1.5.4.1 please can you advise?
I am using Mijoshop ver. 1.4.5
Open Cart version 1.5.5.1
VQmod manager ver. 2.0-beta.6
This is a typical error log entry
REQUEST URI : /administrator/index.php?option=com_mijoshop&route=catalog/product/update&token=d7c3541f979a3604e77a7c119af86c9d&product_id=35
MOD DETAILS:
modFile : /home/mysite/public_html/components/com_mijoshop/opencart/vqmod/xml/options_model_sku.xml
id : Options Model / SKU
version : 1.0
vqmver : 2.1.5
author : Straightlight
SEARCH NOT FOUND (ABORTING MOD): [sort_order]
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
"The reason why the Open Cart extension doesn't work is because the relationships are not really being segmented from a "coding" perspective. Although what you see is a unique variant sku created from a product option, that new sku is still tied to the "parent" item.
eCC must see the relationship actually separted from the parent and child items in order for it to truly work like what we discussed"
Can you verify this and is there anything you can do if this is true to help make this work.
Thank you in advance.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Couldn't agree more. Send me a PM for further customization in order to match your requirements with QB POS and Webgility.Just because your extension wasn't written specifically for what I am wanting to use it for does not necessarily mean it couldn't be used. Not all extensions written are perfect for all needs.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Can you tell me if this is how your ext works?
I have a product model# "ZZZZZ"
I have an option with model# "111"
If my customer selects product "ZZZZZ" with option "111" will the final model# be "ZZZZZ111" or just "111". I need it to produce the first one.
Thanks
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Just uploaded your component on my OpenCart 1.5.5.1. Nothing showed up in the options. Did I miss something during the install?
Thanks.
Calgary Web Design - http://www.beginwithb.com
Calgary Web Design - http://www.beginwithb.com
- What are the steps that you did?
- Did you installed other contributions which XML files may target the same OC files?
- Has it ever worked before?
Without details, I cannot assist period.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 5 guests