[Skip to main content](#vessel-content)

#   Product Ordering Hikashop Plugin Acymailing

##

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

8 years 7 months ago -  8 years 7 months ago [\#291844](#291844) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  *[Product Ordering Hikashop Plugin Acymailing](/forum/30-integrations/894552-product-ordering-hikashop-plugin-acymailing#291844 "HI, Plugin Acymailing sorts by title and product&#95;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&#95;ordering or product&#95;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")* was created by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")*

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: 8 years 7 months ago by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTQ1NTItcHJvZHVjdC1vcmRlcmluZy1oaWthc2hvcC1wbHVnaW4tYWN5bWFpbGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 7 months ago [\#291855](#291855) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Ordering Hikashop Plugin Acymailing](/forum/30-integrations/894552-product-ordering-hikashop-plugin-acymailing#291855 "HI, Plugin Acymailing sorts by title and product&#95;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&#95;ordering or product&#95;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")*

Hi,

You're limited by the interface to generate the tags in the newsletter. It's done by the line:
$values = array('product_id' =&gt; 'ACY_ID', 'product_created' =&gt; 'CREATED_DATE', 'product_modified' =&gt; 'MODIFIED_DATE', 'product_name' =&gt; '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](/forum/user/5180-jabatec "View Jabatec's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTQ1NTItcHJvZHVjdC1vcmRlcmluZy1oaWthc2hvcC1wbHVnaW4tYWN5bWFpbGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

8 years 7 months ago [\#291876](#291876) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[Product Ordering Hikashop Plugin Acymailing](/forum/30-integrations/894552-product-ordering-hikashop-plugin-acymailing#291876 "HI, Plugin Acymailing sorts by title and product&#95;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&#95;ordering or product&#95;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")*

It works perfect, thank you very much

Javier

---

Javier Ballester

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTQ1NTItcHJvZHVjdC1vcmRlcmluZy1oaWthc2hvcC1wbHVnaW4tYWN5bWFpbGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
