Bakery Module

snark

Quote from: mjm4842 on August 31, 2010, 07:34:54 PM
Solution #2 - The backwards compatible solution

Instead of removing the red text as described in the above message, replace it with $sql_showall. For example:

WHERE $sql_sectiononly

Then insert the following lines right above the line that says // Get total number of items

if (isset($_GET['showall'])) {
   $sql_sectiononly = '';
} else {
   $sql_sectiononly = "section_id = '$section_id' AND ";
}


As a result, the basic functionality of your pages will not change and the list will only include items in your page (or category if you prefer).

To list all items, just create a manual link that has the same address you would normally use but add a "?showall" to the end of the address. For example:

http://www.yoursite.com/pages/yourshopname/my-shop.php?showall

Limitation: If you view an item and then click the Back link, you will no longer see the full list.

Michael

With this idea it would also be possible to make à filter option, making it possible to filter on brand, price, etc....

yishay

Goodmorning!

I have a minor problem in the bakerymodule. Somehow the nextlabel.gif and previouslabel.gif wont show in the standard lightbox. clicking forward and backward on the highlighted picture works, just the *label.gifs wont show?

Can anyone assist?

mjm4842

#24
Solution #2 - The backwards compatible solution

Instead of removing the red text as described in the above message, replace it with $sql_showall. For example:

WHERE $sql_sectiononly

Then insert the following lines right above the line that says // Get total number of items

if (isset($_GET['showall'])) {
   $sql_sectiononly = '';
} else {
   $sql_sectiononly = "section_id = '$section_id' AND ";
}


As a result, the basic functionality of your pages will not change and the list will only include items in your page (or category if you prefer).

To list all items, just create a manual link that has the same address you would normally use but add a "?showall" to the end of the address. For example:

http://www.yoursite.com/pages/yourshopname/my-shop.php?showall

Limitation: If you view an item and then click the Back link, you will no longer see the full list.

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

mjm4842

#23
Hi comfort,

To modify Bakery to list all items from all of your pages, edit the file called view_overview.php with a text editor like PSPad or Notepad++ (even the regular Windows Notepad will do). There should be two lines in there that include the following text:

WHERE section_id = '$section_id' AND

Just delete the text that appears in red above and save your changes. The word WHERE and any text that comes after the red text must remain.

IMPORTANT: Once you have made this change, regardless of the Bakery page, all items will always be listed.

Note: This modification will result in a non-standard version of Bakery. This isn't a bad thing but you will need to remember to re-apply this change again should you upgrade to a newer version of Bakery in the future.

Hope this helps.

With warmest regards,


Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

mjm4842

#22
Hi comfort,

Do you just want a snippet of PHP that you can insert on a page and still have the the individual product lists or do you want to modify the Bakery code so that the lists include all products from all of your bakery shops?

Best regards,

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

comfort

Google has nothing to do with it. (that was a different question)
I just want 1 page with all of thethe products i've added on different pages.

mjm4842

Hi comfort,

If I understand what you are trying to do, I think you want to be able to set custom variables for Google Analytics. Here is a link that includes information on how to accomplish this:

http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html

What it will do is enable you to group categories of products for analysis in Google Analytics. For example, if you have a department store, you can set a department variable and then analyse interest by department.

If this isn't what you are trying to accomplish, please clarify what you are trying to accomplish.

Warmest regards from Canada,

Michael Milette

___________________________
TNG Consulting Inc.
Sustainable Solutions for Life
www.tngconsulting.ca
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

comfort

No, i have different categories with products, but i want them to list in 1 seperate page.

And can anyone help me out with analytics?

# Modify Google Analytics tracking code
Modify the Google Analytics tracking code by replacing the line below:

pageTracker._trackPageview();
by the next line:
pageTracker._trackPageview(<?php if($ga_page) echo '"'.$ga_page.'"'?>);

On:
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18283422-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

mjm4842

Would that not be the same as setting the number of Products per Page to zero (0 = Unlimited) in the Page Settings?

If not, can you be more specific about what exactly you are trying to accomplish.

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

comfort

is there a way to create a page with all excisting products? (in oscommerce: all_products.php)
Perhaps with a sql line, so i could filter the products  :?

daydreamer

Hi Michael

Many thanks for that, never used MPForm but does the job superb with referer url.

Thanks
Nick

mjm4842

Hi Nick,

I have been faced with a similar situation. If you use the MPForm module, you may have a solution that is already implemented.

MPForm is an enhanced alternative to the Form module that is included with WebsiteBaker. One of the really useful features is that it includes a Referer URL which lets you know which page the customer came from. Since each product has its own unique URL, you can use this to identifying the product in question. Not sure if the Forms module that comes with WebsiteBaker includes this feature.

If you aren't already using MPForm, take a look at it. One of the many useful enhancements included is a built-in autoresponder that you can turn on. This gives the client that extra level of interaction by confirming their action and establishing their expectations for your response. Your auto-response message can even suggest checking an FAQ list, or, if you tend to always get the same type of questions, include the answer in the message. You can even include promotional information. My clients like to use it for collecting names and email addresses in exchange for giving stuff. The only thing that is missing for this last purpose would be an easy way to access the list of submitted email addresses... anyone have a snippet for this?.

You will find MPForm at :
http://www.websitebakers.com/pages/modules/interaction/mpform.php?searchresult=1&sstring=mpform

Best regards,

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

daydreamer

Ok maybe a easier way to enquire about a product would be to have a link on the product detail page " Enquire about this product" which takes you to a form which pulls the product title into the subject. Is there a simple way of doing this with the form thats built into WB?

Thanks

snark

Discount thingy;
I will send you a pm

Droplets;
I do not see the need to put in a wysiwyg-field in the settings-page,is it because you want to be Anke to choose THE droplets from the droplet-popup from the editor, just like f.i. an internal link.....

I have used droplets many times in settingspages, just type [[dropletname]] in the field and it should work.

mjm4842

Hi Nick,

I am not familiar with how droplets work behind the scenes. However a little while ago I did come across a post from someone who described how to make droplets work in PHP templates. Unfortunately I don't remember where in the forums I found it. I would imagine that there must be some kind of function that can be called on a string to make the droplet work. Kind of like YourText = InterpretDroplet("Here is your text: [[sectionpicker?sid=10]]"). If you can search the forums for me to find that information, it might be possible to enable droplets in each of the Page Settings sections depending on how much work it ends up being.

Best regards,

Michael

Quote from: daydreamer on August 25, 2010, 09:20:21 PM
What I am trying to achieve is to add a small contact form to each product... A product enquiry if you like.
I just thought it best if I had a form and called it with a droplet but as it is at the moment it will not work adding [[sectionpicker?sid=10]] in the footer section.
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

mjm4842

Hi snoork,

The new version will includes a promo system. While the promo code management system is done, I am trying to figure out how to actually applying the discount to the prices. The promo code system also includes an option for free shipping which is actually working. Not sure how complete the implementation will be in the coming release however my objective is to have it 100% working by the time it is released.

It's interesting to note that adding a promo code system to Bakery was what got me started on this quest to enhance Bakery. It is now the only thing I have left to complete out of my To Do list. Many of the enhancements (like a new tax system based on a tax table) came from my own needs. I did also scanned the Bakery forum looking for ideas. Some, if they didn't take too long, I just implemented it. Others ended up on my wish list of future enhancements.

Could you do me a favour and share with me your vision of how you would like to offer discounts? For example, are all your products the same price? Would you want to have the discount code applicable on all items in your shop or just on a specific item? Are you looking to offer a percentage discount or fixed amount? Any information you could offer would be helpful. My business is to provide services so I don't have a lot of experience with issues that are specific to selling products. Shipping, for example, never comes up in my business.

I can't promise that the promo code system will work out exactly the way you want. I have built in a certain amount of flexibility into the promo code system however I am developing primarily to meet my own needs first.

Don't worry, open source is an evolutionary process that never ends. You never know, someone might volunteer to help me out and we'll get even more new features in place.

Best regards,


Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

snark

While you are expandingthe options for pricing with a preview option, is there any sightw on à discount option?

I think that is THE most wanted feature for bakert at THE moment

daydreamer

Hi Michael,

What I am trying to achieve is to add a small contact form to each product... A product enquiry if you like.
I just thought it best if I had a form and called it with a droplet but as it is at the moment it will not work adding [[sectionpicker?sid=10]] in the footer section.

Regards
Nick (daydreamer)

mjm4842

#8
Hi daydreamer,

Thank you for taking the time to contribute your suggestion.

Adding a WYSIWYG to the Page Settings might be possible however I would have to have a better idea of how people use this page.

The issue with simply converting the textareas to WYSIWYG editors is that each section contains only partial HTML code. For example, there is a table which starts in the Overview (Header) section, continues in the Overview (Product-Loop) section and then finally closes in the Overview (Footer) section. WYSIWYG editors ensure that all HTML code is complete in each section.

If we merge the header and footer sections together, keeping a placeholder called [LOOP] or something like that for the separate loop section (would appear in a separate editor window), it might actually become feasible to implement what you are suggesting.

I just finished contributing over a hundred hours of development time on a voluntary basis into improving Bakery. Unfortunately don't have time at the moment to implement WYSIWYG in the Page Settings. However I would definitely be open to implementing this for you if you are willing to pay me to do it :-).

One of the great strengths of Website Baker is it's ease of use for technically oriented and technically challenged users alike. I believe that this modification could be beneficial and move Bakery towards this goal.

Unless someone else would like to contribute development time on this, the best I can do for now is add it to my list of future features which will hopefully make it in to a future release of Bakery.

Thanks again for your suggestion.

With warmest regards,

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

daydreamer

#7
Hi mjm4842

I think it would also be a very good feature if the option was there weather to show add to cart or not
also, Is it possible to add wysiwyg to page settings to make it possible to use droplets

Thanks

mjm4842

Hi daydreamer,

Seems like a reasonable request.

I am currently working on the next version of Bakery. As a result of your request, there will be a third "Active" setting in the Modify Product screen called Preview. When you choose this option, the item will be displayed in Bakery but the Quantity field and Add to cart button will no longer be visible.

I know it doesn't help you for your current requirement but the good news is that it's coming!

Thanks for your suggestion!


Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

daydreamer

I need it as I want to advertise some products without price and sell others

mjm4842

Why would you want to hide "Add to cart" if the price is zero? I would think this would be a useful option in case you want to have free items.

Michael
Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________________


www.tngconsulting.ca

daydreamer

Is it possible to hide add to cart if price is zero

Thanks

kweitzel

I think Bakery itself does not support it, but you could make a "Menulink" going directly to the detail page.

cheers

Klaus