product teaser and zero amount patch

Contrib type: 
Other
Status: 
Initial upload
Moderation: 
Not ready for moderation

Downloads

Compatibility: 
Ubercart 2.x

This patch adds the option to display the product teaser in the grid and table catalog views.
This patch also removes payment forms from checkout when the order total is $0.00

To run this patch (on Linux anyways) just copy the patchfile to /sites/default/modules (or whatever dir contains ubercart) and type
patch -p0 < ubercart_product_teaser_and_0_amount.patch

This has been tested with ubercart 2 rc 2 and 3

PreviewAttachmentSize
ubercart_product_teaser_and_0_amount.patch2.75 KB
Rainman's picture
Offline
Joined: 08/26/2009
Juice: 24
Ubercart 2.0-RC6 fixes, do not use existing patch on RC6

Do Not use the existing Patch on RC6, it will brick your whole Drupal install (if this happens, un-tar the RC6 again to regain). Happily I got a test site up for testing RC6 with all the various hacks I have in place, this was one I expected to be an issue so the brick wasn't a surprise. The attached patch is simply a Hack of the previous with all of the line numbers adjusted to fit where it all should with RC6. plus a couple modifications to clean up odd carriage returns in the previous.

Removed patch.. haven't received any reply from the original poster, will try to create a proper patch in the future.

regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Sorry, I haven't logged in here for a while

Please re-post your code and I will take a look at it, and create a patch.

victoria_b's picture
Offline
Joined: 03/28/2009
Juice: 30
Product teaser and zero amount patch - Update?

Hi,

I would be really grateful if someone managed to get this working with Drupal 6 and the latest version of Ubercart - as I have a website going live in a month's time that would make perfect use of it.

Is anyone aware of its current status?

Thanks!

regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Sorry this took so long

Sorry, I have been really busy.
I had just manually patched my existing sites, but after the security update today I decided to take the time to make a proper patch. Since I have multiple sites using this and had to upgrade them all today.

I have added some more stuff to this patch, but I can provide separate patch files if you only need some of the modifications.

The current version does the following.
1. Allows showing teasers in both grid and table view (turning it on for grid turns it on for table view as well).
2. In grid view, fixes columns so they are consistent regardless of the number of columns
3. Doesn't display the payment for for 0 amount orders (Note: I use this for free downloads if you have Free items that include shipping you will need to mod this)
4. Displays customer email on order overview page
5. Adds Masked CC to order CC processed message.

Just copy to your ubercart dir and run
patch -p0 < path/file.patch

AttachmentSize
ubercart-6--2-2-show-teaser_0-amount-order_order-overview-show-email.patch 12.68 KB
Rainman's picture
Offline
Joined: 08/26/2009
Juice: 24
6--2-2 version patch

That's Fantastic! Thanks so much for making this available, my site just wouldn't be near the same without it.

I just so happened to be in the middle of testing manually applying myself, so I'll test this one against that and let you know if I find any issues.

regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Show teaser patch

As requested, I am uploading these as separate patches.

This is just the show teaser patch.

AttachmentSize
uc_6--2-2_show_teaser.patch 6.06 KB
regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Zero Amount Patch

This patch hides the payment pane during checkout if the amount in the cart is $0.00 and none of the products include shipping.

AttachmentSize
uc_6--2-2_zero_amount.patch 901 bytes
regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Show customer email on store/orders page

Shows customer email on store/orders page

AttachmentSize
uc_6--2-2_orders_show_email.patch 5.02 KB
regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
Show masked CC in order log

Shows the masked CC in the order log
When using the CC payments, the CC is removed on cron update depending on the settings.
This is good for security, but is nice to have the last 4 digits for reference later.

This just adds the masked credit cart to the order log when the card is processed.

AttachmentSize
uc_6--2-2_show_masked_cc.patch 2.01 KB
regx@drupal.org's picture
Offline
Joined: 10/30/2007
Juice: 98
uc_breadcrumb_hook patch

uc_catalog kind of highjacks the Drupal breadcrumb. This little patch provides a hook that you can implement in your modules to alter the catalog breadcrumb.

AttachmentSize
uc_6--2-2_catalog_breadcrumb.patch 991 bytes
Rainman's picture
Offline
Joined: 08/26/2009
Juice: 24
Re: Show teaser patch

Thanks regx! I used the separate Show Teaser and Zero Amount patches. they verified my testing with manual changes and some nice improvements so went with it. the patches applied without any issue, works perfectly on Ubercart 6.x-2.2.

jddeli's picture
Offline
Joined: 11/15/2010
Juice: 38
Thanks regx! I used the

Thanks regx!
I used the separate Show Teaser patche. they verified my testing the patches applied without any issue, works perfectly on Ubercart 6.x-2.2.

ipark88's picture
Offline
Joined: 08/30/2011
Juice: 5
Product Teaser Patch

Hello,

I have manually applied the patch, and now I do see a check box under "catalog grid view settings" that says "teaser". However, when I go to the grid view, only the price, SKU, image etc. show up without any product description.

I am desperate to get the product description included in the catalog grid view, and have been trying for hours. I have tired template.php overrides, manual patching, and views, but I cannot find a simple way to add a description to the grid view.

if anyone could help it would be much appreciated. I'm sure there is an easy way to make this happen, but I'm a newb and at the end of my rope!

Thanks

ipark88's picture
Offline
Joined: 08/30/2011
Juice: 5
Test Site

you can see what I'm working on here : http://yellowcupboard.com/PSS2/PSS2/catalog/1

rectangle's picture
Offline
Joined: 08/08/2010
Juice: 38
Adding "Read more..."

Thanks for this patch. I was just what I was looking for. I'm using the table catalog view & it's works great. One request though, is there any way to add a "read more..." link to the end of the teaser?