CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Sort the additional product images list
Robsta
post Nov 19 2007, 07:13 PM
Post #1


Skin Developer
Group Icon

Group: Administrator
Posts: 8,252
Joined: 11-March 07
From: Exmouth, UK
Member No.: 2

Catalogue Listing
About Us
Store Review Here



In Admin, when you wish to assign additional images to a product, the list of images which are available to add can be huge.

The easiest way to find the image you want, is to sort the list.

This is how you do it...

Look for:
CODE
admin/products/extraImgs.php


Edit, and find the following text around line 114...

CODE
foreach($dirArray as $file) {


Add the following just before...

CODE
asort($dirArray);


Save and upload.

Many thanks to Sir William for this little treasure smile.gif


--------------------
Integrated HELPDESK and RMA (Returns Management) - Integrated BLOG / NEWS - Better than using Wordpress!
Add a feature rich Blog/News System and Helpdesk/RMA system to your CubeCart v4 store. Contact us for a demo.
Follow us on Facebook! Get CubeCart!

Search Engine Sitemap Feeds - Merchant Center Product Feeds - Customer Follow-up Email Mod - Essential for every store!
Go to the top of the page
 
+Quote Post
john
post Jan 2 2008, 08:10 PM
Post #2


Member
Group Icon

Group: Members
Posts: 51
Joined: 23-December 07
Member No.: 2,713



Any way to do this in v4.1?
Go to the top of the page
 
+Quote Post
Robsta
post Jan 2 2008, 08:13 PM
Post #3


Skin Developer
Group Icon

Group: Administrator
Posts: 8,252
Joined: 11-March 07
From: Exmouth, UK
Member No.: 2

Catalogue Listing
About Us
Store Review Here



It works differently in v4. I believe the next release of v4.1 fixes the issue.


--------------------
Integrated HELPDESK and RMA (Returns Management) - Integrated BLOG / NEWS - Better than using Wordpress!
Add a feature rich Blog/News System and Helpdesk/RMA system to your CubeCart v4 store. Contact us for a demo.
Follow us on Facebook! Get CubeCart!

Search Engine Sitemap Feeds - Merchant Center Product Feeds - Customer Follow-up Email Mod - Essential for every store!
Go to the top of the page
 
+Quote Post
FlairConcepts
post Apr 25 2008, 02:58 AM
Post #4


FlairConcepts
Group Icon

Group: Members +
Posts: 873
Joined: 17-May 07
From: Sydney - Australia
Member No.: 368



Worked a Charm!

Thanks Robsta smile.gif

Cheers
Antz
Go to the top of the page
 
+Quote Post
Rustic-crafts
post May 15 2011, 05:43 PM
Post #5


Member
Group Icon

Group: Members
Posts: 26
Joined: 13-August 10
From: Lincolnshire
Member No.: 16,411



Great tweak, but can the same be done for the image manager in admin? It would be so much easier to find an image to delete.
Go to the top of the page
 
+Quote Post
WEBspinning
post Apr 17 2012, 09:21 PM
Post #6


Member
Group Icon

Group: Members
Posts: 25
Joined: 31-December 08
Member No.: 8,209



yes it can. paste the same line in admin/filemanager/index.php
Go to the top of the page
 
+Quote Post
WEBspinning
post Apr 29 2012, 03:38 PM
Post #7


Member
Group Icon

Group: Members
Posts: 25
Joined: 31-December 08
Member No.: 8,209



I cannot find a wy to sort the image order when adding an image in to a site document though - anyone have any ideas please?
Go to the top of the page
 
+Quote Post
Rustic-crafts
post May 24 2012, 07:32 PM
Post #8


Member
Group Icon

Group: Members
Posts: 26
Joined: 13-August 10
From: Lincolnshire
Member No.: 16,411



QUOTE (WEBspinning @ Apr 17 2012, 10:21 PM) *
yes it can. paste the same line in admin/filemanager/index.php


Brilliant thanks
Go to the top of the page
 
+Quote Post
SHARONOZ
post Jun 4 2012, 11:20 AM
Post #9


Newbie
Group Icon

Group: Members
Posts: 4
Joined: 20-January 12
Member No.: 27,745



I have tried this fix, but no luck, any advice please. I am using Cubecart 3. I have tried placing it before and after the line of text. Thank you in advance.Sharon. smile.gif
Go to the top of the page
 
+Quote Post
SHARONOZ
post Jun 11 2012, 05:38 AM
Post #10


Newbie
Group Icon

Group: Members
Posts: 4
Joined: 20-January 12
Member No.: 27,745



I have made this script change on the files suggested and this has worked well for the Category section only.

BUT, When I insert an image in the Description area via the little yellow mountain, FCKEditor loads up and this where I have a problem with all of the images out of order.

Do you have any advice on how to fix this please?

Thankyou in advance.

Sharon. smile.gif
Go to the top of the page
 
+Quote Post
Robsta
post Jun 11 2012, 06:45 AM
Post #11


Skin Developer
Group Icon

Group: Administrator
Posts: 8,252
Joined: 11-March 07
From: Exmouth, UK
Member No.: 2

Catalogue Listing
About Us
Store Review Here



This tweak is only for the additional images dialog, not the editor image list.


--------------------
Integrated HELPDESK and RMA (Returns Management) - Integrated BLOG / NEWS - Better than using Wordpress!
Add a feature rich Blog/News System and Helpdesk/RMA system to your CubeCart v4 store. Contact us for a demo.
Follow us on Facebook! Get CubeCart!

Search Engine Sitemap Feeds - Merchant Center Product Feeds - Customer Follow-up Email Mod - Essential for every store!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th November 2014 - 04:04 AM
CubeCart Developers Network
Get CubeCart!
© 2007 - 2014  CubeCartForums.org in association with Inspired Solutions. Sponsored by Devellion