Bundle Products feature has been published
#1
Posted 09 October 2011 - 11:00 PM
Bundle Products feature has just been published. The feature is completely documented: http://lemonstandapp...h/?query=bundle
We also updated the Simplicity theme - it now includes bundle products support: http://lemonstandapp...eme/simplicity/
Thank you
#2
Posted 10 October 2011 - 12:11 AM
Aleksey, on 09 October 2011 - 11:00 PM, said:
"We also updated the Simplicity theme - it now includes bundle products support"
Hello Aleskey,
If we are currently using the Simplicity Theme, how can we update our theme without affecting our current edits?
Are there any recommendations on upgrading?
Could you post some suggestions/recommendations? LIke which files to add to our current modified theme?
Thanks, just don't want to lose the changes that we have made.
Charlie
#4
Posted 10 October 2011 - 09:05 AM
Charlie, on 10 October 2011 - 12:11 AM, said:
Are there any recommendations on upgrading?
Could you post some suggestions/recommendations? LIke which files to add to our current modified theme?
Charlie,
Updating the theme will overwrite your changes. Following the documentation Aleksey linked is the safest route.
For the eager developer, here are the differences for the update: http://o7.no/qx3YeJ Update at GitHub: https://github.com/l...0dc9f9a026d81b3 (ignore the 2 braintree parts)
#5
Posted 10 October 2011 - 10:05 AM
Eric, on 10 October 2011 - 09:05 AM, said:
Updating the theme will overwrite your changes. Following the documentation Aleksey linked is the safest route.
For the eager developer, here are the differences for the update: http://o7.no/qx3YeJ Update at GitHub: https://github.com/l...0dc9f9a026d81b3 (ignore the 2 braintree parts)
Thanks...I see that there is no easy way to update the theme.
I am learning Lemonstand....and just found out that Partials are in the database and not in the site files and cannot be accessed by ftp. Okay I understand that....but when I try to save the partials I get this error "Partial name can only contain latin characters, numbers, colons and underscores." and since all the new bundle files have semicolons in the name such as "shop;bundle" or "shop;bundle_product_parameters" how do I add these files? Do I change the semicolon to a colon when I save them? or what is the trick?
Thanks....really trying to figure this out. Appreciate the help.
#8
Posted 10 October 2011 - 10:21 AM
#9
Posted 10 October 2011 - 02:36 PM
It was just a little confusing at first as I couldn't find the Bundled Tab, but then after reading the documentation I realized that I had to...instead of the usual double click to get the Product Edit page...you do one click then select the Product Details page and you will find the bundled tab is there.
It does force you to close out the Product Edit screen and then go and find the Product that you were editing and then to open the Product Details page to add the bundled products so it is not so easy on the work flow but it does work great so I am not complaining just making that note. Would be nice to have at least a link between the pages. I can imagine if I had a site with hundreds of products it would be a lot of searching to find the product again. That is my only suggestion....so far.
Whoops...I found the "Edit" Button on the Product Details page...that will take you back to the Product Edit page....nice.
Great Job! Loving the New Bundled Products Feature!!
What this does for me now is that someone can be reminded of our related products right in the checkout and also add every related product to their shopping cart right on that one page. No having to add to the cart and then "continue shopping" to add the other products. Awesome!
Thanks!!
#10
Posted 10 October 2011 - 04:10 PM
I updated the theme archive on the Marketplace. It now displays the quantity value (http://cl.ly/361o1h0N1Q222D2r0n0f) and calculates the product total cost properly.
Thank you
#11
Posted 10 October 2011 - 05:16 PM
Aleksey, on 10 October 2011 - 04:10 PM, said:
I updated the theme archive on the Marketplace. It now displays the quantity value (http://cl.ly/361o1h0N1Q222D2r0n0f) and calculates the product total cost properly.
Thank you
Aleksey,
Can I ask what file or files that you updated please?
Charlie
#12
Posted 10 October 2011 - 06:35 PM
I attached the updated files: shop:bundle_product_quantity.htm (partial) and global.js. And also, add this class to global.css:
span.product_price_multiplier {
font-size: 19px;
font-weight: normal;
display: inline-block;
margin-right: 10px;
height: 28px;
vertical-align: middle;
color: #999;
}
Thanks
Attached File(s)
-
global.js (5.33K)
Number of downloads: 6 -
shop;bundle_product_quantity.htm (1.64K)
Number of downloads: 4
#13
Posted 12 October 2011 - 04:08 PM
I have set up a bundled product with the vision that the 3 items I have added to the bundled item would be displayed in the cart instead of just the 1 bundled product. Is this actually possible? From the example given by dotcomlarry on http://forum.lemonst...ch__1#entry2511 post #3, where the individual products are purchasable as well as a bundle which when added to cart, it adds all items attached to the bundle to the cart instead of the bundle itself.
I hope this makes sence.
#14
Posted 12 October 2011 - 04:41 PM
I'm not sure whether I understood you correctly. Have you seen the demo video?
Does it look properly? Also please try to add a product with a grouped product here: http://themes.lemons...uct/demo-lemon/ Does the cart page look correctly?
Thank you
#15
Posted 13 October 2011 - 12:57 PM
Aleksey, on 10 October 2011 - 06:35 PM, said:
I attached the updated files: shop:bundle_product_quantity.htm (partial) and global.js. And also, add this class to global.css:
span.product_price_multiplier {
font-size: 19px;
font-weight: normal;
display: inline-block;
margin-right: 10px;
height: 28px;
vertical-align: middle;
color: #999;
}
Thanks
Aleksey, Thanks for breaking this new code addition down for me...that worked perfect and save a ton of time. I appreciate the help!!!
#16
Posted 13 October 2011 - 01:52 PM
Aleksey, on 12 October 2011 - 04:41 PM, said:
I'm not sure whether I understood you correctly. Have you seen the demo video?
Does it look properly? Also please try to add a product with a grouped product here: http://themes.lemons...uct/demo-lemon/ Does the cart page look correctly?
Thank you
Hey Aleksey,
I have seen the video which is what confused me even more. However after some more research I realised that the product page and the cart needs some more code to be able to handle the said bundles. I now have another issue that I posted a question on one of the documentation pages. Basically the $product variable from the shop:product action on that page on my version of the site is not being past through the sendRequest update I have on this page. Our 'collections' page is slightly different to the documented setup in the lemonstand documentation and renders quite a few partials as well as running a sendrequest and displaying the product clicked on through the update function. From this point is where I would like to display the bundled options, which is what I assume is stopping the bundled items displaying in the cart as I can not get the bundled partials to display in the 'collections' product page. Is there anyway I can produce the $product variable from the shop:product action within a partial to be able to render another partial?
I am getting an ' Undefined variable: products' message however it is not as simple as adding it to the partial. The process to get to the bundled items showing above the add to cart for me is like below:
Collection page (page with shop:product action included passing the $product var that the bundle partial needs) -> Rendered Partial shop:product_list (which is past the $product to it) -> Clicking a product runs a sendRequest and updates a div with products_detail partial -> This partial has the addtocart button which includes the rendering of the Bundle partial -> Error in undefined product var.
I have tried using: Cms_ActionManager::execAction('shop:product', $this); in the partial with no success.
How do I achieve this?
Confusing I know, hope you were able to follow that. You can see the example of the collection page at https://www.institchu.com/collections/. You will see the point where the sendRequest fires and where the add to cart button displays which is where I'm looking to display bundled options, if there is any, for that product.
This post has been edited by Ash - Matter: 13 October 2011 - 02:34 PM
#17
Posted 13 October 2011 - 03:18 PM
Yes, it is confusing a bit.
How do you render multiple products on shop:product page?
I cannot guarantee that bundle products will be able to work in this environment, but let's try. On which specific partial you try to render the Bundle partial? I checked your site, bit didn't get it. Can you please post the code of the partial which generates the error?
Thank you
#18
Posted 13 October 2011 - 03:34 PM
Aleksey, on 13 October 2011 - 03:18 PM, said:
Yes, it is confusing a bit.
How do you render multiple products on shop:product page?
I cannot guarantee that bundle products will be able to work in this environment, but let's try. On which specific partial you try to render the Bundle partial? I checked your site, bit didn't get it. Can you please post the code of the partial which generates the error?
Thank you
The partial generating the error is the documented bundle partial, which is being rendered on a custom partial that is updated when clicking a product in the shop:product_list partial that is rendered in the /collections/ page that has the action set to shop:product.
My colleague setup the collections page originally so not sure how he got it working, or even if the $product variable is even being used to show the products. However this page is working for single items so dont really want to be recoding it at this late stage, especially since its now live. But very keen to include this bundled products.
Since you looked at the page, I can explain in more detail what we're after here. Selling a shirt is simple enough since it is a single product. however we're looking to sell suits on here too which consists of a jacket, vest and pants (3 individual items that can be purchased individually) and would like to use the bundled option to display this in the collections page as a 3 piece suit, when added to cart having the 3 items in there instead of the bundle item so they can remove a vest if they like or customise each item individually.
What are your thoughts on this?
#19
Posted 13 October 2011 - 03:49 PM
Quote
I understand it. I wanted to look up at the custom partial which you use to render the standard bundle partial. Can you post its code please?
Thank you
#20
Posted 13 October 2011 - 04:16 PM
Aleksey, on 13 October 2011 - 03:49 PM, said:
I understand it. I wanted to look up at the custom partial which you use to render the standard bundle partial. Can you post its code please?
Thank you
Certainly. As you can see, the rendering of the bundled partial is currently commented out so the site still functions for single items
<?
//$product = Db_DbHelper::object("select * from shop_customers where id='$id_prod'");
$sql1 = mysql_query("SELECT * FROM shop_products WHERE id='$id_prod'");
$row1 = mysql_fetch_array($sql1);
$id_prod = $row1['id'];
$name_prod = $row1['name'];
$price_prod = $row1['price'];
// GET THE IMAGES
$sql2 = mysql_query("SELECT * FROM db_files WHERE master_object_id='$id_prod' AND master_object_class='Shop_Product'");
$row2 = mysql_fetch_array($sql2);
$name_img = $row2['disk_name'];
// GET THE CATEGORY
$sql2 = mysql_query("SELECT * FROM shop_products_categories,shop_categories WHERE shop_categories.id=shop_products_categories.shop_category_id AND shop_products_categories.shop_product_id='$id_prod'");
$row2 = mysql_fetch_array($sql2);
$category_name = $row2['name'];
?>
<div id="detail_prods" ><img src="<?= site_url('') ?>/uploaded/public/<?= $name_img ?>" width="100%"></div>
<div id="details_prod_content">
<?= open_form() ?>
<div class="content_box_details_prod">
<div class="box_details_prod" style="top:50px;">
<h3><?= $name_prod?></h3>
<?= flash_message() ?>
<p class="box_details_price"><?= format_currency($price_prod) ?></p>
<script type='text/javascript'>
$('meta[name=fb-image]').attr('content', '<?= site_url('') ?>/uploaded/public/<?= $name_img ?>');
</script>
<a href="http://www.facebook.com/sharer.php?u=<?= htmlentities(urlencode('https://www.institchu.com/collections/#detailsproducts/id/'.$id_prod.'/name/'.$name_prod)); ?>&t=<?= urlencode('InStitchu - '.$name_prod); ?>" class="bt_share" target='_new'>Share</a>
<? $check = array('Shirts', 'Custom'); if (in_array($category_name, $check)) { ?>
<a href="<?= site_url('') ?>custom-shirts/?id=<?= $id_prod ?>" class="bt_customize">Start Customising</a>
<? } ?>
<? $check = array('Suits', 'Custom Suits'); if (in_array($category_name, $check)) { ?>
<a href="<?= site_url('') ?>custom-suit/?id=<?= $id_prod ?>" class="bt_customize">Start Customising</a>
<? } ?>
<? $check = array('Vests', 'Custom Vests'); if (in_array($category_name, $check)) { ?>
<a href="<?= site_url('') ?>custom-vest/?id=<?= $id_prod ?>" class="bt_customize">Start Customising</a>
<? } ?>
<? $check = array('Pants', 'Custom Pants'); if (in_array($category_name, $check)) { ?>
<a href="<?= site_url('') ?>custom-pants/?id=<?= $id_prod ?>" class="bt_customize">Start Customising</a>
<? } ?>
<div id="product_bundle_items"><? //$this->render_partial('shop:bundle', array('product'=>$product)) ?></div>
<input class="bt_addcart" onclick="return $(this).getForm().sendRequest('shop:on_addToCart',{extraFields: {'product_id': <?= $id_prod ?>,'no_flash': 0,'redirect': '<?= site_url('') ?>cart'},onSuccess: function(){ }})" type="button" value="Add to cart"/>
<!--<input type="submit" name="add_to_cart" class="bt_addcart" value="Add to cart"/>-->
</div></div></form>
</div>

Help














