Product Ordering Hikashop Plugin Acymailing
8 years 5 months ago - 8 years 5 months ago #291844
by Jabatec
Javier Ballester
Product Ordering Hikashop Plugin Acymailing was created by Jabatec
HI,
Plugin Acymailing sorts by title and product_id. However, this does not allow the correct organization of products by importance.
It would be possible to adjust the plugin to sort by category_ordering or product_ordering.
If it is not possible, working with a custom field order, would it be viable?
The objective is to be able to order the products in order of importance. The title and the product id does not relate to the value of the product.
Thank you
Javier
Plugin Acymailing sorts by title and product_id. However, this does not allow the correct organization of products by importance.
It would be possible to adjust the plugin to sort by category_ordering or product_ordering.
If it is not possible, working with a custom field order, would it be viable?
The objective is to be able to order the products in order of importance. The title and the product id does not relate to the value of the product.
Thank you
Javier
Javier Ballester
Last edit: 8 years 5 months ago by Jabatec.
Please Log in or Create an account to join the conversation.
8 years 5 months ago #291855
by nicolas
Replied by nicolas on topic Product Ordering Hikashop Plugin Acymailing
Hi,
You're limited by the interface to generate the tags in the newsletter. It's done by the line:
$values = array('product_id' => 'ACY_ID', 'product_created' => 'CREATED_DATE', 'product_modified' => 'MODIFIED_DATE', 'product_name' => 'HIKA_TITLE');
in plugins/acymailing/hikashop/hikashop.php
So you could add your custom field in that array to be able to select it for your tags.
But even without that, you can just replace the value of the order parameter in the tag in the newsletter.
Change the piece:
order:product_id,DESC
to for example:
order:XXX,ASC
where XXX is the column name of a custom field of the table "product" and you'll be able to sort the products of that tag based on that custom field, even without any modification to the code.
You're limited by the interface to generate the tags in the newsletter. It's done by the line:
$values = array('product_id' => 'ACY_ID', 'product_created' => 'CREATED_DATE', 'product_modified' => 'MODIFIED_DATE', 'product_name' => 'HIKA_TITLE');
in plugins/acymailing/hikashop/hikashop.php
So you could add your custom field in that array to be able to select it for your tags.
But even without that, you can just replace the value of the order parameter in the tag in the newsletter.
Change the piece:
order:product_id,DESC
to for example:
order:XXX,ASC
where XXX is the column name of a custom field of the table "product" and you'll be able to sort the products of that tag based on that custom field, even without any modification to the code.
The following user(s) said Thank You: Jabatec
Please Log in or Create an account to join the conversation.
8 years 5 months ago #291876
by Jabatec
Javier Ballester
Replied by Jabatec on topic Product Ordering Hikashop Plugin Acymailing
It works perfect, thank you very much
Javier
Javier
Javier Ballester
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds