Giter Site home page Giter Site logo

Comments (6)

pixelmatseriks avatar pixelmatseriks commented on May 24, 2024

Hi Tony,

There is a custom_sorting in product manager, but the "score" is calculated by assigning "points" in typoscript configuration to categories and if the product is new, so probably isn't the solution for you.

But if you can sort products by another property, it is possible to add it as an option in the plugin options: "Product ordering" -> "Sort by"

In following example I add the SKU property as a sort by option:

Page TS

# Add new item to dropdown in plugin settings flexform of Product Manager Plugin
TCEFORM.tt_content.pi_flexform.pxaproductmanager_pi1.productOrderings.settings\.orderProductBy.addItems.sku = By SKU

Setup TS

# Add sku to orderByAllowed
plugin.tx_pxaproductmanager.settings.orderByAllowed = name,tstamp,crdate,categories,categories.sorting,custom_sorting,sorting,sku

from pxa_product_manager.

AdvanceWM avatar AdvanceWM commented on May 24, 2024

That's a helpful hint, Mats.

Thank you

from pxa_product_manager.

AdvanceWM avatar AdvanceWM commented on May 24, 2024

Is there a similar technique that could apply to category sorting? I don't see any settings in the typoscript configuration for that.

from pxa_product_manager.

pixelmatseriks avatar pixelmatseriks commented on May 24, 2024

It is possible to select the order of categories in plugin options tab "Category ordering" in plugin mode "List view (Possible navigation)". By default it is possible to order by sorting and title, but it is possible to add for other fields.

Example to sort by uid field:

Page TS

# Add new item to dropdown in plugin settings flexform of Product Manager Plugin
TCEFORM.tt_content.pi_flexform.pxaproductmanager_pi1.categoriesOrderings.settings\.orderCategoriesBy.addItems.uid = By Id

from pxa_product_manager.

AdvanceWM avatar AdvanceWM commented on May 24, 2024

Many thanks, Mats

from pxa_product_manager.

AdvanceWM avatar AdvanceWM commented on May 24, 2024

As a workaround for category sorting, I used the one of the Product Manager fields added to sys_category that I did not see being used at this time -- pxapm_tax_rate.

Setting in PageTS:

Add new item to dropdown in plugin settings flexform of Product Manager Plugin

TCEFORM.tt_content.pi_flexform.pxaproductmanager_pi1.categoriesOrderings.settings.orderCategoriesBy.addItems.pxapm_tax_rate = By Tax Rate

Then I could use MySQL Workbench or phpMyAdmin to manually set a tax rate for Parent Categories and Child Categories to achieve the desired sorting.

This is strictly a workaround, and I would like to see a way to sort Categories that is more accessible to the normal website admin.

from pxa_product_manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.