Sorting issue
-
Dear support,
I need help with my price sorting when i apply to my page it sorts all the product prices but what i need instead is for it to sort the price for the products in the selected category.
thank you
The page I need help with: [log in to see the link]
-
Hello @ramzi27,
You can add the following parameter to the end of the URL:
orderby=price
.For example:
https://royalwhiskeylb.com/shop-2/?wlfilter=1&woolentor_product_cat=single-malt,whiskey&orderby=price
That said, I’m not sure what setup you’re looking for. If the category is clicked, the products are arranged by prices automatically? If not, how?
Could you also share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
Look forward to hearing back from you.
Hello Saif H.,
Thank you for your reply, what i aiming for is that there is a default sorting button in my shop page which offers different types of sorting. What I want is that when I choose a category and then select the type of sorting it will sort the products in this category. While, what it does now is that it sorts every product in my shop page which is not what i need. I am going also to attach a screenshot for better understanding.,
it was attached by the email the email is sent to you
`
### WordPress Environment ###WordPress address (URL): https://royalwhiskeylb.com
Site address (URL): https://royalwhiskeylb.com
WC Version: 6.9.4
REST API Version: ? 6.9.4
WC Blocks Version: ? 8.3.3
Action Scheduler Version: ? 3.4.0
Log Directory Writable: ?
WP Version: 6.0.2
WP Multisite: –
WP Memory Limit: 128 MB
WP Debug Mode: –
WP Cron: ?
Language: en_US
External object cache: ?### Server Environment ###
Server Info: nginx/1.18.0
PHP Version: 7.4.12
PHP Post Max Size: 512 MB
PHP Time Limit: 300
PHP Max Input Vars: 5000
cURL Version: 7.77.0
OpenSSL/1.1.1kSUHOSIN Installed: –
MySQL Version: 5.7.26-29-log
Max Upload Size: 512 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 6.9.4
WC Database Prefix: wp_
Total Database Size: 16.27MB
Database Data Size: 14.22MB
Database Index Size: 2.05MB
wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_braapf_product_stock_status_parent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_braapf_product_variation_attributes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_braapf_variable_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_nextend2_section_storage: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nextend2_smartslider3_sliders: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
wp_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_action_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_field_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
wp_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_form_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_upgrades: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
wp_options: Data: 7.52MB + Index: 0.06MB + Engine InnoDB
wp_postmeta: Data: 3.48MB + Index: 0.20MB + Engine InnoDB
wp_posts: Data: 1.52MB + Index: 0.06MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB### Post Type Counts ###
attachment: 249
br_filters_group: 1
br_product_filter: 1
cartflows_flow: 1
cartflows_step: 2
custom_css: 7
customize_changeset: 170
elementor_library: 7
filter-set: 3
mc4wp-form: 1
ml-slide: 1
ml-slider: 1
nav_menu_item: 13
page: 14
post: 3
product: 132
revision: 60
wa-order-numbers: 1
wcapf-filter: 1
woolentor-template: 1
wp_global_styles: 1
wpforms: 3### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (18) ###
Starter Templates: by Brainstorm Force – 3.1.17
CartFlows: by CartFlows Inc – 1.11.1
Checkout Plugins – Stripe for WooCommerce: by Checkout Plugins – 1.4.6
Convertful – Your Ultimate On-Site Conversion Tool: by – 2.5
Custom Fonts: by Brainstorm Force – 1.3.7
Elementor: by Elementor.com – 3.7.8
ElementsKit Lite: by Wpmet – 2.7.2
Essential Addons for Elementor: by WPDeveloper – 5.3.2
HT Newsletter for Elementor: by HT Plugins – 1.0.10
MC4WP: Mailchimp for WordPress: by ibericode – 4.8.10
OneClick Chat to Order: by Walter Pinem – 1.0.4.1
Simple Banner: by Ryan Petersen – 2.12.1
Sina Extension for Elementor: by SinaExtra – 3.4.3
Temporary Login Without Password: by StoreApps – 1.7.6
UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.22.23Variation Swatches for WooCommerce: by CartFlows – 1.0.4
WooCommerce: by Automattic – 6.9.4
WooLentor – WooCommerce Elementor Addons + Builder: by HasThemes – 2.4.5### Inactive Plugins (2) ###
Order On Mobile for WooCommerce: by INTOLAP – 2.2
WP Menu Cart: by WP Overnight – 2.12.1### Dropin Plugins (1) ###
object-cache.php: Redis Object Cache Drop-In
### Must Use Plugins (1) ###
EasyWP Plugin: by Namecheap
Inc. – 1.0.1.1### Settings ###
API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: ?### WC Pages ###
Shop base: #401 – /shop-2/
Cart: #97 – /cart-2/
Checkout: #98 – /checkout-2/
My account: #99 – /my-account-2/
Terms and conditions: ? Page not set### Theme ###
Name: Astra Child
Version: 1.0.0
Author URL: https://wpastra.com/about/
Child Theme: ?
Parent Theme Name: Astra
Parent Theme Version: 3.9.2
Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
WooCommerce Support: ?### Templates ###
Overrides: –
### Admin ###
Enabled Features: activity-panels
analytics
coupons
customer-effort-score-tracks
experimental-products-task
experimental-import-products-task
experimental-fashion-sample-products
experimental-product-tour
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
wc-pay-promotion
wc-pay-welcome-pageDisabled Features: minified-js
new-product-management-experience
settingsDaily Cron: ? Next scheduled: 2022-10-12 08:56:48 +00:00
Options: ?
Notes: 55
Onboarding: completed### Action Scheduler ###
Canceled: 4
Oldest: 2022-09-12 08:57:59 +0000
Newest: 2022-10-10 10:46:30 +0000Complete: 449
Oldest: 2022-09-12 08:57:59 +0000
Newest: 2022-10-11 15:44:31 +0000Pending: 2
Oldest: 2022-10-11 21:24:21 +0000
Newest: 2022-10-11 21:24:21 +0000### Status report information ###
Generated at: 2022-10-11 19:58:05 +00:00
Here is the link to Screenshot image https://imgur.com/a/W1kquzD
Hello @ramzi27,
Thank you for clearing your goals. So just to make sure, you want to select a category and when sorting it shows the products ONLY from said category.
This is actually what should happen by default if you use something like Product Categories List block on the StoreFront theme.
Link to image: https://i.imgur.com/EuyycgH.pngThe sorting should only add a parameter to the category, but I can see the whole URL structure is changing in your case.
Can you please reach out to Elementor about this? Perhaps we can help based on their reply. ??
Cheers!
- The topic ‘Sorting issue’ is closed to new replies.