Forum Replies Created
-
AuthorPosts
-
September 2, 2010 at 1:24 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18595darkmatterMember
All seems right, dunno what to tell you…
btw $nggImage is already used in eStore_misc_functions.php
What version wp-eStore are you running? mine is 3.4.8
September 2, 2010 at 1:15 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18593darkmatterMemberIn gallery-wp-eStore-addtocart.php:
‘<div id=”ngg-image-<?php echo $image->pid ?>” class=”ngg-gallery-thumbnail-box” <?php echo $gallery->imagewidth ?> >
<div class=”ngg-gallery-thumbnail” >
imageURL ?>” title=”” <?php echo $image->thumbcode ?> >
<img title=”<?php echo $image->alttext ?>” alt=”<?php echo $image->alttext ?>” src=”<?php echo $image->thumbnailURL ?>” <?php echo $image->size ?> />
<span style=”text-align:center;”><?php echo $image->alttext ?>
</span><span style=”text-align:center;”><?php echo get_button_code_for_product(1,$image); ?></span>
</div>
</div>’
Correct?
September 2, 2010 at 1:09 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18591darkmatterMemberwhat’s the url of your gallery
September 2, 2010 at 1:00 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18589darkmatterMemberTry adding the variable at the end and not before $button_type=1
September 2, 2010 at 12:56 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18587darkmatterMemberI don’t have $button_type=1 in that function. Mine only reads function get_variation_and_input_code($ret_product,$line_break=true,$ngg2Image)
September 2, 2010 at 12:38 am in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18585darkmatterMemberAll seems correct but what are you using $button_type=1 for? No reason for ngg2Image that I can recall. I may have seen nggImage somewhere already or I might have been toying with it, not sure. I’d use ngg2Image just to be safe.
Did you create your own NGG template file in the view directory copied from gallery-wp-eStore.php? If so make sure the name of it is the same as you call it on the gallery page you’re making. I named the file gallery-wp-eStore-addtocart.php and then used shortcode [nggallery id=x template=wp-eStore-addtocart] in my page.
August 11, 2010 at 5:16 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18583darkmatterMemberGot it. The biggest part of the problem, for me at least, was actually understanding how to code it in the first place, but ok!
August 10, 2010 at 11:15 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18582darkmatterMemberStrange, I had posted a link to the zip file with the files and now it’s gone?
[admin deleted the link]
===== Updated by admin =====
LOL… I kept a backup and deleted that link. Not a very good idea to have links with sourecode
Nobody will be able to just copy and paste it anyway as those files are constantly changing with newer version of eStore. It’s better to just have your step by step guideline which is very complete for any coder to follow.
August 9, 2010 at 6:55 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18580darkmatterMemberIt’s been a while, but I’ll try to outline the steps. The essence of this (and please keep in mind that I’m not a programmer or proficient at php so I’m going by deduction) is to add a new variable that can be called from the NGG view template with the data you’re looking to carry over. In my case, it’s the customer input field, normally used for customers to give you special instructions, but that I’m using to auto-populate with the name of the photo from the NG Gallery.
1. Place gallery-wp-estore-addtocart.php in your NG Gallery’s plugin ‘view’ folder.
2. Replace eStore_misc_functions.php and eStore_button_display_helper.php in the wp-cart-for-digital-products (WP eStore) plugin folder.
3. Upload all of your pics to NG Gallery (in a new gallery).
4. Create a new product in WP eStore and check the “Collect Customer Input” option. I don’t think you need to enter any text for the label. This just makes it possible to use the field for our purposes. I priced the product (Photo Print) at $0 and then added all of the variations I wanted at their full price (example: PRINTS|4×6:5|5×7:7|Two 5×7:12|8×10:12|11×14:20|12×16:25 etc.)
5. Place shortcode [nggallery id=x template=wp-eStore-addtocart] in your page/post (x is the gallery ID number).
If I’m not mistaken, that’s it.
Don’t forget to set an Add To Cart button link for the WP eStore Settings (Add to Cart button text or Image).
Displaying a gallery with these options should yield something similar to http://camelarae.com/galleries/sloan-canyon-christian-academy as far as functionality goes.
Good luck!
July 20, 2010 at 6:07 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18577darkmatterMemberIt’s been a while since I looked at this… there were several steps which affected multiple files including the NGG Gallery view files. Have you made any changes in the NGG/e-Store gallery viewer located in plugins/nextgen-gallery/view ?
darkmatterMemberDeactivated and Reactivated and it solved the problem… thanks!
darkmatterMemberI upgraded about a week ago, but I did deactivate it then uploaded the new files… What’s the solution?
darkmatterMemberAlso, can’t add a product either, says it created it but doesn’t show up in the products list.
June 1, 2010 at 6:11 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18575darkmatterMemberOK, I figured it out finally…
In eStore_misc_functions.php:
function get_button_code_for_product($id,$image)
and
function get_button_code_for_element($ret_product,$line_break=true,$ngg2Image='')
and
$var_output = get_variation_and_input_code($ret_product,$line_break,$ngg2Image);
In eStore_button_display_helper.php:
function get_variation_and_input_code($ret_product,$line_break=true,$ngg2Image)
and
$var_output .= $ret_product->custom_input_label.': <input type="text" name="custom_input" value="'.$ngg2Image->alttext.'" class="eStore_text_input" />';
I understand all this much better now. Thanks again for your patience in helping me out
June 1, 2010 at 5:00 pm in reply to: Why Configure Every Product Separately When Used with NextGen Gallery #18574darkmatterMemberI guess what I don’t quite understand is the hierarchy as it relates to the position of the call to a parameter. In other words, I can have
function get_button_code_for_product($id,$image='')
and<?php echo get_button_code_for_product(1,$image); ?>
but then if I call $image in eStore_button_display_helper.php as above with $nggImage, nothing happens.Do I also need to add the reference in eStore_button_display_helper.php somewhere?
Once again, lost haha!
-
AuthorPosts