Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

TOPIC: Sort order by

Sort order by 11 years, 10 months ago #3772

  • Thebig
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hello,

I've bought your module, its great. But i need some help.

Instead of having the categories sort by created date / modified date / random, is it possible sorting them by alphabetical order ?? I really need this

Regards
Neil

Re: Sort order by 11 years, 10 months ago #3791

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Neil McKee,

You can add the following code line at the mod_yt_vmcategory.xml file in the module in order to sort categories by title.

Please finding:
<param name="sort_order_field" type="list" default="cdate" label="Sort order by" description="Ordering options">
    <option value="cdate">Created Date</option> 
    <option value="mdate">Modified Date</option>                    
    <option value="random">Random</option>                                                                                                              
</param>  
[code]
  

change to:
[code]

 <param name="sort_order_field" type="list" default="cdate" label="Sort order by" description="Ordering options">
    <option value="cdate">Created Date</option> 
    <option value="mdate">Modified Date</option>                    
    <option value="random">Random</option>
    <option value="category_name">Title</option>        
                                                                                                             
</param>  



Thanks
Ticket System | Join our Clubs to download our extensions and templates
The following user(s) said Thank You: Virtuemart

Re: Sort order by 11 years, 10 months ago #3792

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Neil McKee,

You can add the following code line at the mod_yt_vmcategory.xml file in the module in order to sort categories by title.

Please finding:

<param name="sort_order_field" type="list" default="cdate" label="Sort order by" description="Ordering options">
    <option value="cdate">Created Date</option> 
    <option value="mdate">Modified Date</option>                    
    <option value="random">Random</option>                                                                                                              
</param>  



change to:


<param name="sort_order_field" type="list" default="cdate" label="Sort order by" description="Ordering options">
    <option value="cdate">Created Date</option> 
    <option value="mdate">Modified Date</option>                    
    <option value="random">Random</option>
    <option value="category_name">Title</option>        
                                                                                                             
</param> 



Thanks
Ticket System | Join our Clubs to download our extensions and templates

Re: Sort order by 11 years, 10 months ago #3802

  • Thebig
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Thank you very much, it works great !!!

One last question, as you can see on the first image, all the categories and sub categories are in order except for the last one Business. On the second image, at the backend of the site, "business" is at the bottom of the list.
In the virtuemart setup, "business" is the second category on the list.

Would you know any way getting the category "Business" at the top ?

Regards
Neil
Attachments:

Re: Sort order by 11 years, 10 months ago #3826

Hello,

I have the same problem - but I have not the code mentioned obove in my xml file.
I´m using mod_sj_vm_categories_j17_v2.0.0

Please help,

Best regards,

Karle UG

My xml-file is like this:

<?xml version="1.0"?>
<extension type="module" version="1.7.0" method="upgrade">
	<name>Sj Vm Categories</name>
	<creationDate>January 2012</creationDate>
	<author>YouTech Company</author>
	<copyright>Copyright (c) 2012 YouTech Company</copyright>
	<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
	<authorEmail>contact@ytcvn.com</authorEmail>
	<authorUrl>https://www.smartaddons.com</authorUrl>
	<version>2.0</version>
	<description>SJ_XML_DESCRIPTION</description>
	<files>
		<filename module="mod_sj_vm_categories">mod_sj_vm_categories.php</filename>
		<filename>index.html</filename>
		<folder>tmpl</folder>
		<folder>assets</folder>
		<folder>core</folder>
	</files>
	<languages folder="language/en-GB">
		<language tag="en-GB">en-GB.mod_sj_vm_categories.ini</language>
		<language tag="en-GB">en-GB.mod_sj_vm_categories.sys.ini</language>
	</languages>
	<config>
		<fields name="params">

			<fieldset name="basic" addfieldpath="/modules/mod_sj_vm_categories/core/elements">
				<field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="Module Class Suffix"/>
				<field name="width_module" type="text" default="700" label="Module Width" description="Width of Module. Please enter the number only"/>
				<field name="theme" type="list" default="theme1" label="Select a theme" description="Please select a theme for the module">
					<option value="theme1">theme1</option>
					<option value="theme2">theme2</option>
					<option value="theme3">theme3</option>
					<option value="theme4">theme4</option>
				</field>
			</fieldset>

			<fieldset name="source_selection" label="Source Options">
				<field name="source" type="sjvmcategories" multiple="multiple" default="" label="Category" description="Select category"/>
				<field name="source_limit" type="text" default="10" label="Sub Categories Count" description="Sub Categories Count"/>
				<field name="category_columns" type="text" default="4" label="Category Columns" description="Number of category columns"/>
				<field name="tab_event" type="list" default="click" label="Tab events (For theme4)" description="Selecting tab events">
					<option value="click">Click</option>
					<option value="mouseover">Hover</option>
				</field>
			</fieldset>

			<fieldset name="big_item" label="Parent Category Options">
				<field name="item_title_linkable" type="radio" default="1" label="Category Title Link" description="link for category title">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="show_title" type="radio" default="1" label="Show Category Title" description="Show title of category">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="limit_title" type="text" default="-1" label="Category Title Max Chars" description="Max length of category title. -1 to unlimit length"/>
				<field name="title_color" type="text" default="#000000" label="Category Title Color" description="Please enter a color of category title . Example: #FFFFFF"/>
				<field name="show_image" type="radio" default="1" label="Show Category Thumbnail" description="Show category thumbnail">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="link_image" type="radio" default="1" label="Category Thumbnail Link" description="link for category Thumbnail">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="big_item_image_width" type="text" default="360" label="Category Thumbnail width" description="Category Thumbnail width"/>
				<field name="big_item_image_height" type="text" default="" label="Category Thumbnail height" description="Category Thumbnail height"/>
				<field name="big_item_image_function" type="sjthumbnailmode" default="none" label="Category Thumbnail resize mode" description="Category Thumbnail resize mode"/>
				<field name="big_item_image_background" type="text" default="" label="Category Thumbnail background" description="Category Thumbnail background"/>
			</fieldset>

			<fieldset name="small_item" label="Sub Category Options">
				<field name="link_sub_title" type="radio" default="1" label="Category Title Link" description="link for sub category title">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="show_sub_title" type="radio" default="1" label="Show Category Title" description="Show title of sub category">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="limit_sub_title" type="text" default="-1" label="Category Title Max Chars" description="Max length of sub category title. -1 to unlimit length"/>
				<field name="sub_title_color" type="text" default="#000000" label="Category Title Color" description="Please enter a color of sub category title . Example: #FFFFFF"/>
				<field name="show_small_image" type="radio" default="1" label="Show Category Thumbnail" description="Show sub category thumbnail">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="link_sub_image" type="radio" default="1" label="Category Thumbnail Link" description="link for sub category thumb image">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>
				<field name="small_item_image_width" type="text" default="360" label="Category Thumbnail width" description="Sub-category Thumbnail width"/>
				<field name="small_item_image_height" type="text" default="" label="Category Thumbnail height" description="Sub-category Thumbnail height"/>
				<field name="small_item_image_function" type="sjthumbnailmode" default="none" label="Category Thumbnail resize mode" description="Sub-category Thumbnail resize mode"/>
				<field name="small_item_image_background" type="text" default="" label="Category Thumbnail background" description="Sub-category Thumbnail background"/>
			</fieldset>

			<fieldset name="all_item" label="All Category Options">
				<field name="target" type="list" default="_self" label="Open Link" description="The Type shows when you click on the link">
					<option value="_self">Same Window</option>
					<option value="_blank">New Window</option>
				</field>
				<field name="show_total_products" type="radio" default="1" label="Show Total Articles" description="Show number of total products">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>

			</fieldset>

			<fieldset name="advanced">
				<field name="custom_url" type="textarea" default="" label="Custom Url" description="Custom url of items. This only supports  Item Ids Type. Syntax: &lt;br/&gt; id1:url1 &lt;br/&gt; id2:url2 &lt;br/&gt; ..." cols="36" rows="4" filter="raw"/>
				<field name="pretext" type="textarea" default="" label="Pre-text" description="Intro text of module" cols="36" rows="4" filter="raw"/>
				<field name="posttext" type="textarea" default="" label="Post-text" description="Footer text of module" cols="36" rows="4" filter="raw"/>
				<field name="include_jquery" type="radio" default="1" label="Include jQuery" description="Do you want include jQuery library?">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="owncache" type="list" default="1" label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC">
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>
				<field name="cache_time" type="text" default="900" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC"/>
			</fieldset>
<fieldset name="sort_order_field" type="list" default="cdate" label="Sort order by" description="Ordering options">
    <option value="cdate">Created Date</option> 
    <option value="mdate">Modified Date</option>                    
    <option value="random">Random</option>
    <option value="category_name">Title</option>        
                                                                                                             
</fieldset> 
		</fields>
	</config>
</extension>

Re: Sort order by 11 years, 10 months ago #3827

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Neil,

The vm category module v.j15 is not supported this feature which you want to have now.

Thanks
Ticket System | Join our Clubs to download our extensions and templates
Time to create page: 0.23 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes