Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?
See Download section for online documentation. Log in to post new comments.
Go to bottomPage: 1
TOPIC: Install Instructions
#11
Install Instructions 4 Years, 6 Months ago  
Hi

Your PAP's 0.2 looks like a great contribution, but the install instructions do not match a fresh OSCommerce 2.2

This file ---> /catalog/admin/index.php

Does not contain any lines of code below as described in your install document.

YOUR PAPS INSTALL INSTRUCTION CODE
Code:

array('title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES, 'link' => tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'selected_box=catalog')),


Can you help please

Thnaks

Jolanta
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/05 21:45 By jolanta.
The administrator has disabled public write access.
 
#12
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Thanks for pointing this out, jolanta

the install instructions are primarily for oscMAX, but I will be updating the readme.txt for version 0.3 to include dual oscMAX/osc2.2 instructions.

anyway, for osc2.2, you should skip step 2) altogether.

in step 3) do the following:

in catalog/admin/includes/boxes/catalog.php

beneath line which contains:

BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES

add an identical line, but change

FILENAME_PRODUCTS_ATTRIBUTES to FILENAME_PAPS

and

BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES to BOX_CATALOG_CATEGORIES_PAPS


then follow the rest of the installation instructions. they should be okay, but please let me know if you have any further problems

thanks

hanuman
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/03 05:14 By hanuman.
The administrator has disabled public write access.
 
#13
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi

Thank you so much for your help, I have included some information below to help others with this install.

I got it working but I need the images to display across the page (horizontal) I have 27 small images and they now display in 1 column on the page and this stretches the page too much... I have attached an image of the page.

I see this code in product_info.php which says ensure only 4 thumbnails per line



but it does not seem to be working as I have only 1 line with 27 images going top to bottom in 1 column and not across the page.

Can you advise please.

Thanks

Jolanta

Here is some info for others:
1. if you get a line 93 error it is because you have a wrongly named image in your images/paps/ folder... this happens if you do not enter an image name in the admin when uploading a new image... to fix just remove the image with no name from your images/paps/ folder.

2. To not display the image name or the image value that you entered in the admin... uncomment this code like this --->

Code:




Code:

getAttributeOptionName($arr_attrib_arrays[$i][$x]);
                                                     ?>



3. To change your image size change the numbers 150 and 40 in this code below.

Code:





and in this code below

Code:




4. To remove the blue link border from your images set the border="1" to border="0"

5. I have attached my entire table code in a file below... if anyone uses it you will need to change your css classes to your own.

This is an excellent contribution... I really hope I can get the Javascript to display across the page.

good luck.
This attachment is hidden for guests. Please login or register to see it.
This image is hidden for guests. Please login or register to see it.

I am unable to put some code into this forum... it is in my file...
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/03 22:40 By jolanta.
The administrator has disabled public write access.
 
#14
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi Jolanta

thanks for your continued help on this. regarding your problem, I haven't been able to reproduce it on my test site, so i think it is probably mis-configured in the admin section.

you can see the '4 images per row' rule being enforced at the following page:

www.lannathaicrafts.com/mango-wood-cresc...tle-cradle-p-40.html

from what i can see in the image you posted, it would appear that you may have given each image a different
'attribute name', and this would result in the display you are getting because each set of pictures that have the same 'attribute name' are displayed on a new row.

In admin, you should set up your pictures so the attribute list looks something like this:


This image is hidden for guests. Please login or register to see it.

You can achieve this by adding pictures with the following kind of values:

IMAGE1

Attribute Name: Color
Attribute Value: Red
Filename: xxxxx.jpg

IMAGE2

Attribute Name: Color
Attribute Value: Blue
Filename: xxxxx.jpg

IMAGE3

Attribute Name: Color
Attribute Value: Green
Filename: xxxxx.jpg

As you can see, the Attribute Name must be the same for all pics whcih you want to see displayed horizontally.

I hope this helps. If not, let me know.

hanuman.
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/04 05:27 By hanuman.
The administrator has disabled public write access.
 
#15
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi

Thanks again for your help, as far as I know the image name is derived from the product model number.

So my images all have the same model number like 10001, 10002, 10003, etc... I removed this java script code
Code:

's'
that rewrote the image text name to plural like Blacks, Carmels, Coral Sands, etc... instead of what I entered which was just Black, Carmel, Coral Sand, etc...

Here are my image names.

10001Black_1.jpg
10001Carmel_1.jpg
10001Coral Sand_3.jpg

I think I may know what the problem is based on what you have said... I will review and will reply again soon.

Thank you so much for your very valuable assistance and your time.

best regards

Jolanta
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/04 08:36 By jolanta.
The administrator has disabled public write access.
 
#16
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi

Well I have got it working sort of... the problem was that I was entering a unique attribute name for each image... and for horizontal (as you said) it MUST be the same "Attribute Name" so I re-uploaded the images and it is closer but not 100% as you can see from the screenshot... it is stretching the page and displaying in 3 rows with a different (not 4) amount of images in each row.

I will keep trying to figure it out... if you can offer any suggestion that would be great.

What I am trying to get is 2 rows... each with 10 images.

Thanks again

Jolanta
This image is hidden for guests. Please login or register to see it.
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/04 09:29 By jolanta.
The administrator has disabled public write access.
 
#18
Number of images per row to display 4 Years, 6 Months ago  
Hi

ok I have worked this out and am posting here to help others

To get the images to display across the page in 2 rows with each row having 10 images I did this...

In product_info.php below where it says... ensure only 4 thumbnails per line... there is this code

Code:

<?php } else { if(($x/5 == 1) || ($x/5 == 2)) { ?> <tr> <?php } ?>


in this code change the number 5 to one number above the number of images per row you want to display... so for 10 images I changed the 5 to an 11 like this

Code:

<?php } else { if(($x/11 == 1) || ($x/11 == 2)) { ?> <tr> <?php } ?>


Thats it

Good Luck

Jolanta
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/05 20:08 By jolanta.
The administrator has disabled public write access.
 
#19
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi

I have posted a fix to get the images across the page... 10 images per row... using 2 rows...

I have a question... I am also using Attribute Sorter and Copier v.6.0.2

and when I duplicate a product it duplicates the attributes AND the PAPS attributes which is want I want it to do... and I can see them on the page... perfect!

but when I copy a products attributes to another different product it does not copy over the PAPS attributes... only the regular attributes... and I cannot see the PAPS on the page...

I need to get the PAPS into every product and there are too many products to do it manually (which would work) so here is my question...

When I create a PAPS set for a single product what table in the database does it write to... I have checked my tables before and after creating a PAPS set and they are the same... which cannot be as it must surely write it somewhere.

If you can tell me which table that would be great.

Thank you so much

Jolanta
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2007/11/05 20:22 By jolanta.
The administrator has disabled public write access.
 
#20
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi Jolanta

this probably isn't what you want to hear, but the PAPS system doesn't use the database at all.

when i started writing it, i just wanted a way to drop a few image files into the images/paps directory and have the product_info page pick it up automatically, without the need for any configuration, DB calls or setup at all (there was no admin section in v0.1!).

all the data the system needs is in the filename of each image. take a look in the images/paps directory and you will see that the names of the files you uploaded have been changed to the following format:

[model_number][attribute_name]_[attribute_value].jpg
e.g. 05004Color_Green.jpg

now, i can see that uploading files for many products will take a long time. if you can find a way to just copy and rename the image files to the correct format offline, you could than just upload them all straight to the images/paps directory without having to do it via the Admin section, which would take longer.

that's all i can suggest for now. perhaps i'll add functionality catering for larger numbers of products in a future release.

many thanks

H.
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21
Re:Install Instructions do not match OSC 2.2 4 Years, 6 Months ago  
Hi

Yes that's what I thought (after some digging )

I will do it by the method you suggest as it will be quicker, I am sure I can find an image renaming tool to speed up the process. If I do I will post it here.

Thanks again for all your help... THIS IS A GREAT CONTRIBUTION !!!

Jolanta
jolanta
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1