Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Fancy add to cart and Nextgen Gallery Display
- This topic has 6 replies, 2 voices, and was last updated 13 years, 3 months ago by rrossi.
-
AuthorPosts
-
August 11, 2011 at 6:56 pm #4039rrossiMember
The wp-eStore-auto-addtocart.php shortcode is installed and working..
I have set up my NextGen Gallery using Alternate Integration Method (Method 2. How do I use and set-up the Fancy Display #3? I downloaded the Extra Shortcodes for WP eStore pluging and installed it. So now what? I cant seem to find the shortcode that works with the above scenario.
Will they work together?
Any suggestions out there would be of great help.
Thanks
Richard
August 12, 2011 at 1:23 am #35416amin007ParticipantNextGen gallery has its own display method which is what you are using. The fancy displays are eStore’s product display option that also shows the product in a certain way (you have to chose which display want to use). You can’t use multiple display options at the same time. Its like saying you want to use fancy1 and fancy2 at the same time!
If you want to use a grid view with fancy3 display then you don’t need to use NextGen gallery at all. You can place your products in a category then show all products from that category using fancy display 3 in a grid view.
Anyway, the bottom line is that you need to chose which display option you want to use then stick to that option.
August 12, 2011 at 3:58 am #35417rrossiMemberOK I get it.. can’t use both… since I am creating galleries with many images and currently using method 2 for the nextgen integration, is there the similar ability with the fancy so I won’t have to create each image separately?
Thanks
August 12, 2011 at 11:50 pm #35418amin007ParticipantThe way normal eStore product display works is like the following:
1. You add/create a bunch of products (you can optionally categorize them if you want)
2. You then use a suitable shortcode to display all the products or all the product from a particular category on a page using any of the available product display.
If you have a lot of products to add (step1) then you can use a bulk upload method to upload all the product details to the eStore database. Two possible options for this:
– http://www.tipsandtricks-hq.com/ecommerce/how-to-bulk-upload-estore-products-from-a-csv-file-775
If you are just selling images that are already in NextGen gallery then sticking with NextGen Gallery integration might be a good option for you.
August 15, 2011 at 5:01 pm #35419rrossiMemberI agree, using Nextgen Gallery is probably my best bet… However, one thing is missing.. The base price of the product does not show….
I manually entered the price into the code as seen here:
< <img title=”<?php echo $image->alttext ?>” alt=”<?php echo $image->alttext ?>” src=”<?php echo $image->thumbnailURL ?>” <?php echo $image->size ?> /><?php echo $image->caption ?>Price: $10.00<span><?php echo print_eStore_ngg_add_to_cart($image); ?></span></p>
<p> </p>
This solution isn’t the best, because it will force me to enter the price on each gallery I create, in the code, and who wants to do that.
Is there a tweak that will enter the price from the product detail page?
On most of the examples shown, the price is included?
Thanks again for all of your help.
August 15, 2011 at 11:58 pm #35420amin007ParticipantWhen you use the 2nd NextGen gallery integration method the price for every item is the same. Users prefer to have a heading/title on this page (in large font) that says each item in this gallery costs $Y. This is why the template does not show the price to accommodate that kind of customization.
Remember, anything you place in the image caption (using the gallery) for the image will show up underneath the thumbnail. So you can list your price there too.
The other option is to modify the template code so that it reads the price from the database and shows it where you want. Add the following code somewhere at the beginning of the template:
$product_id = get_option('eStore_ngg_template_product_id');
global $wpdb;
$products_table_name = WP_ESTORE_PRODUCTS_TABLE_NAME;
$ret_product = $wpdb->get_row("SELECT * FROM $products_table_name WHERE id = '$product_id'", OBJECT);
$product_price = $ret_product->price;Now you can add the following anywhere on this template to show the price of for each item:
<?php echo "<span>Price: ".$product_price."</span>"; ?>
August 16, 2011 at 12:20 am #35421rrossiMemberFantastic….. works great
-
AuthorPosts
- You must be logged in to reply to this topic.