Author Topic: MOD: Child list instead of drop down. UPDATE(1.0.11) + store wide quantity mod  (Read 441244 times)

cccmikey

  • Guest
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #30 on: March 21, 2006, 12:37:40 pm »
I've done a clean install of a shop with Mambo and VirtueMart 1.0.3 and simply replaced the files with those from in his last post. It appears to work fine, as it should. I'm having some other issues with tax and with a user sometimes not being allowed to see prices when they should be able to; but I don't think they are related to this mod.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #31 on: March 21, 2006, 14:05:31 pm »
Hi Amina,

I have edited your files with my mod and everything seems to be working fine apart from the continue shopping button in the cart. This may be because you are using SEF url's and the mod to return you to the correct page is not working correctly in this scenario! I'll check on this and get back to you.

Otherwise it looks good and the cart should function as you expected.

Thanks for the glowing praise it is much appreciated

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Amina

  • Beginner
  • *
  • Posts: 10
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #32 on: March 21, 2006, 18:31:09 pm »
Hi Mark,

Fantastic! ;D

What can I say, the site will be user friendly now and it makes a massive difference.  This part of the site was frustrating me and you have been able to resolve the problem, thank you again.

What would it take to actually create a mod that can be uploaded onto your joomla admin section or is this not possible due to the different files that need modifying?

kind regards

Amina

Your a Star Mark!

cccmikey

  • Guest
Prices disappear for new user? Is it the mod, or is it me?
« Reply #33 on: March 26, 2006, 14:22:13 pm »
I'm having an issue with creating users that I'm not sure if it's related to this mod or not.

If I create a user using the "Not a user? Register" link, that user once logged in can not see prices any more. However, if he/she clicks the Add to cart button, he ends up with one of everything listed in the mod.

If I go into Mambo and make that user an admin then he see prices no worries.



Log out, or log in as another admin and it works, but log in as a regular user, and the prices disappear.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #34 on: March 26, 2006, 17:21:11 pm »
Hi cccmikey

I think it is problem with virtuemart v1.0.3

check out this link

http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=16297.msg34859#msg34859

Still working on the modification for 1.0.4 If found to be working O.K. I will upload the files as a package again.

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

fotoshopper

  • Beginner
  • *
  • Posts: 8
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #35 on: March 26, 2006, 18:52:42 pm »
Nice Feature.

I wanted to sell downloads.

Is there a possibility to display checkboxes instead of the quantity?

Nig

  • Beginner
  • *
  • Posts: 42
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #36 on: March 27, 2006, 01:24:52 am »
Fine job. Well done. It worked straight away.

However, can a "continue ahopping" button or link be added so that they can get away from the page they're on?

Thanks.

Nig

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #37 on: March 27, 2006, 01:45:10 am »
Hi

Nig,
Quote
Fine job. Well done. It worked straight away.

However, can a "continue ahopping" button or link be added so that they can get away from the page they're on?

Thanks.

Nig
Trying to work out what youre doing, the only scenario I can come up with is that the customer is being sent to the cart system from a page outside VirtueMart and you want to return them there. VirtuMart and Joomla have their own pathways which should allow customers to return back to somewhere in the site!! My Mod has not changed that in anyway.

The only way would be the store the url of the referer page and store it and compare with virtuemart referer's and ignore them (I think!) and offer a reutn button on the product details page. Not quite sure how to go about this!

If I am correct in my assumptions let me know. If I can think of way around it I will let you know

fotoshopper
Quote
Nice Feature.

I wanted to sell downloads.

Is there a possibility to display checkboxes instead of the quantity?

If all you want to sell is downloads it would be fairly simple to change the forms input type to checkbox's.
if you want to sell other products that are not downloadable it would take a little longer but, I am sure I could come up with something!

Mark
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Nig

  • Beginner
  • *
  • Posts: 42
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #38 on: March 27, 2006, 03:52:05 am »
Thanks for the response.

The reason for the post was that in the 'standard' virtuemart, when you add an item to the cart, it then shows you the cart and offers the option at the bottom of going to checkout or continuing to shop. When I add to the cart using your module, i stay on the same page.

I admit that it's easy enough to get round by having the "Your Cart" module showing so they can click on that and check the contents, I was just wondering about going to the cart page direct from the Add to Cart button.

Thanks for your time and effort.

Nig

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #39 on: March 27, 2006, 13:23:24 pm »
Hi Nig,

Yes that is possible.

in basket.php

remove
Code: [Select]
$loc = $_SESSION['referer'];
     header("Location: $loc");

in shop.browse.php, shop.cart.php & shop.browse_details.php remove these lines
Code: [Select]
if(strpos(strtolower($_SERVER['HTTP_REFERER']),strtolower('category_id')) ||
   strpos(strtolower($_SERVER['HTTP_REFERER']),strtolower('product_id')) ||
      strpos(strtolower($_SERVER['HTTP_REFERER']),strtolower('shop.browse')) ||
        strpos(strtolower($_SERVER['HTTP_REFERER']),strtolower('shop.product_details')) )
      //if has category_id, then add to session or overwrite old referer variable
      {
           $_SESSION['referer'] = $_SERVER['HTTP_REFERER'];
      }

in shop.product_details.php change line 336

Code: [Select]
<input type=\"hidden\" name=\"page\" value=\"shop.product_details\" />
to

Code: [Select]
<input type=\"hidden\" name=\"page\" value=\"shop.cart\" />
in shop.browse change line 231

Code: [Select]
<input type="hidden" name="page" value="shop.browse" />
to

Code: [Select]
<input type="hidden" name="page" value="shop.cart" />
and in ps_product_attribute.php change line 299

Code: [Select]
<input type=\"hidden\" name=\"page\" value=\"shop.product_details\" />
to

Code: [Select]
<input type=\"hidden\" name=\"page\" value=\"shop.cart\" />
This should show the cart evertime you update the quantities.

Mark

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Nig

  • Beginner
  • *
  • Posts: 42
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #40 on: March 27, 2006, 16:18:37 pm »
WooHoo!!

Now that's what I call service!! Thank you VERY much for the swift and detailed reply!

Nig

Nig

  • Beginner
  • *
  • Posts: 42
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #41 on: March 28, 2006, 18:49:53 pm »
OK, I might be picky here, but I have a problem in that I cannot seem to add Quantity discount pricing (via the List Prices option). WHatever I do, it still says the original price. I was hoping I could do this solely onthe parent product (after all, I am trying to get people to pick and mix designs within a single item group), but does this mean I have to go into each item individually and add the discount there? And, if I do, will that allow the discount to be calculated for different items within that parent product?

To be clear, assume the following:

I have a product: BOX

Each BOX can be in different colors and customers can buy any number of different colored boxes. If they buy ANY four boxes (of whatever color) they can get a discount of X%.

Is that a no-go for this module?

And, if it is (or isn't), how in heck do I achieve it anyway?

Thanks for any input at all.

Nig

fotoshopper

  • Beginner
  • *
  • Posts: 8
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #42 on: March 28, 2006, 20:26:06 pm »
Is there a possibility to display checkboxes instead of the quantity?

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #43 on: March 28, 2006, 21:12:45 pm »
Hi Nig,

I see what you mean, discount is applied per child product. Let me look into it and I will see what I can do.

fotoshopper

I've got a mod that will show downloadable products with radio boxes as in the image below. I'm having problems getting a checkbox working but I'm still looking into it.

If the radio boxes will do let me know and I will post the modification

Mark

[attachment cleanup by admin]
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Nig

  • Beginner
  • *
  • Posts: 42
Re: MOD: Child list instead of drop down. UPDATE Single add to cart button
« Reply #44 on: March 28, 2006, 21:29:18 pm »
Thanks Mark,

It's good of you to look into it. I appreciate it!

Nig