Open Source Services
taming open source systems...
Home arrow Forum
Friday, 05 December 2008
Main Menu
Home
Forum
Products
Download
Sitemap
Contact Us
Poll
How did you find this site?
 
Login Form





Lost Password?
No account yet? Register
Open Source Services
Welcome, Guest
Please Login or Register.    Lost Password?
Replace product image with PAPs (1 viewing) (1) Guest
High priority support for Product Attribute Pictures (PAPs) v2.0 PLUS for osCommerce.
Go to bottom Post Reply Favoured: 0
TOPIC: Replace product image with PAPs
#334
drummerjoe (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Replace product image with PAPs 6 Months, 2 Weeks ago  
Hi I want to purchase PAPs 2.0 Plus, but I need to know if this is possible and how to do it:

Instead of a product viewing area, I want the PAPs images to replace the main product image. I also want the small thumbnails of the product attributes to appear directly below it, with the radio buttons below each of those, to select the one the customer wants added to the cart.

Example:

Please let me know asap. I will be beginning development on a customer's site shortly. Thanks
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/21 22:55 By drummerjoe. Reason: image did not upload
  The administrator has disabled public write access.
#335
hanuman (Admin)
Admin
Posts: 289
graph
User Offline Click here to see the profile of this user
Re:Replace product image with PAPs 6 Months, 2 Weeks ago  
Hi drummerjoe

Thanks for the enquiry. You can recreate the required effect using PAPs v2.0 PLUS, but you will need to make one or two HTML-related adjustments to the display files in PAPs. By default, the entire display area is enclosed in 'tr' tags, which would need to be taken out if you wished to replace the following line:

Code:

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
in product_info.php which shows the default oscommerce product image. Also, you would have to ensure as per the installation instructions that the following lines:
Code:

require_once(DIR_WS_CLASSES . 'paps_delegate.php'); $paps_delegate = new paps_delegate(); $arr_globals = $paps_delegate->getProductGlobals($product_info['products_model']); $heading_conf = $paps_delegate->getAttributeHeaderDisplaySettings ($products_options_name['products_options_name'], $product_info['products_model']);
all appear BEFORE the code which calls the display, which is:
Code:

<?php include(DIR_WS_MODULES . '/paps.php'); ?>
All of this is in the instructions, and I will be on hand to provide support as required. The actual size of both thumbnails and selected image can be set via the PAPs admin panel. Hope this helps. Nick
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/22 03:10 By hanuman.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
 
© 2008 Open Source Services
Designed by Open Source Services. Powered by open source software.
Seasonale
Generated in 0.46219 Seconds