Product Ordering Hikashop Plugin Acymailing

  • Posts: 84
  • Thank you received: 13
  • Hikashop Business
6 years 6 months ago #291844

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


Javier Ballester
Last edit: 6 years 6 months ago by Jabatec.

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 6 months ago #291855

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.

The following user(s) said Thank You: Jabatec

Please Log in or Create an account to join the conversation.

  • Posts: 84
  • Thank you received: 13
  • Hikashop Business
6 years 6 months ago #291876

It works perfect, thank you very much

Javier


Javier Ballester

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum