Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#256 2009-03-17 19:10:19

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: yab_shop (simple textpattern shop with paypal support)

Trenc — I think I speak for everyone when I thank you for your hard work and diligence. It’s smart people like you (and not dumb people like me) that make the world go round. I also speak for everyone when I ask about the administrative ordering interface and moving the options into an extensions tab, because I am currently having to reconfigure all the options everytime you give us one of these beautiful updates. I know I am being annoying about this, but it can’t hurt to ask, right? :) Thanks in advance.


Kevin
(graphicpush)

Offline

#257 2009-03-17 19:23:01

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

I am currently having to reconfigure all the options everytime you give us one of these beautiful updates. I know I am being annoying about this, but it can’t hurt to ask, right? :)

Right, it doesn’t hurt. :)
But all I can say is, I’m not the fastest but it will come. :)

Btw. you don’t have to reconfigure your options all the time. This update was only relevant to yab_shop_core. You can see this by the version suffixes of the plugin files (no need to replace yab_shop_config).

Sometimes when the config is changed too, it’s better to copy the old config code in an editor, install the config plugin and copy it back line for line to see changes of the config file. YMMV.

But yes, it would be really easier with a database driven config, that’s true.

Last edited by trenc (2009-03-17 19:24:45)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#258 2009-03-18 00:22:45

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

kevinpotts wrote:

Trenc — I think I speak for everyone when I thank you for your hard work and diligence.

Well said.

I also speak for everyone when I ask about the administrative ordering interface and moving the options into an extensions tab, because I am currently having to reconfigure all the options everytime you give us one of these beautiful updates.

Just as an aside, I’ve been using adi_notes to store a copy of the config, just in case I overwrite it during an upgrade.

Offline

#259 2009-03-18 00:53:51

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

Hi trenc, thanks for the update. Everything works great except:

  • enhanced <txp:yab_shop_add_message /> (subtotal, product-count, item-count; see plugin help)

I might have missed something but I’m using:

<p>Subtotal: <txp:yab_shop_add_message output="subtotal" /></p>
<p>Products: <txp:yab_shop_add_message output="products" /></p>
<p>Items: <txp:yab_shop_add_message output="items" /></p>

on every page and after adding one product I get:

Subtotal: 0.00
Products: 0
Items: 0
     Yarns - Product - Softa
           Price: $10.00
           Quantity: 1
Basket subtotal: $10.00

The “Basket subtotal: $10.00” is the output from <txp:yab_shop_cart output="cart" />.

When I try to add another product, it doesn’t get added. And if I go to the checkout, it’s empty! In fact if I go to any other page the cart gets emptied.

If I remove the <txp:yab_shop_add_message output="..." /> tags everything starts working properly again.

Also, there’s a minor typo in the help:

<txp:yab_shop_add_message message="your message here" ouput="ouput" />

Offline

#260 2009-03-18 13:01:13

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Argh … crap!

I’m so sorry that sometimes you are more beta-testers than productive users. :(

Bugfix version 0.6.2


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#261 2009-03-18 21:28:37

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote:

I’m so sorry that sometimes you are more beta-testers than productive users. :(

No problem – that’s what we’re here for. And we really appreciate the work you’ve done.

It’s working much better now. Couple of things to note though:

  • if <txp:yab_shop_add_message/> is placed on the page before <txp:yab_shop_cart/> then the cart claims that there’re no items
  • if <txp:yab_shop_add_message/> is used on the checkout page then no items are displayed

On reflection think I prefer the behaviour of the <txp:yab_shop_cart/> tag, i.e. when the cart is empty a simple message “No items …” is displayed, but when the cart contains something we get the Subtotal and a link to the Checkout. If it optionally displayed the number of items/products as well it would be ideal (for me anyway). Maybe it could be a container tag – so that users can customise the information and the order?

As it stands:

  • using <txp:yab_shop_add_message output="items" /> results in some output regardless, even if there’re no items, so I would have to use some txp:if tags to stop it from displaying zeroes
  • I can’t display the number of items before the subtotal because of the tag order requirement above

Cheers,

Adi

Offline

#262 2009-03-20 01:41:15

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

midmood wrote:

As an example, the “proceed to check out” link ( “vai alla cassa” in italian”): I tried to put the class .yab-to-checkout in my css, as in trenc’s one… but nothing happens.

Putting:

.yab-to-checkout {
color:red;
}

at the end of your css.php file works for me …

Offline

#263 2009-03-20 03:42:33

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

Hi midmood,

Here’s the problem:

a .yab-to-checkout {
background-color:#990000;
}

should be:

a.yab-to-checkout {
background-color:#990000;
}

No space before the dot.

Offline

#264 2009-03-20 11:16:42

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: yab_shop (simple textpattern shop with paypal support)

gomedia wrote:

Hi midmood,

Here’s the problem:

a .yab-to-checkout {
background-color:#990000;
}

should be:

a.yab-to-checkout {
background-color:#990000;
}

No space before the dot.

Really sorry :) I deleted my previous message cause I realized the code error and I was really emabarassed having bothered you guys :)
Anyway… this is the demonstration you can alwais count on TXP community, even for silly questions…

Offline

#265 2009-03-21 08:55:52

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: yab_shop (simple textpattern shop with paypal support)

the demo store shows – on the checkout page – the size, color & variant of each product in the cart

I would like to display the size of my items in the checkout list, but nothing is appearing when using the tag txp:yab_shop_checkout

that particular custom field seems to be working okay, it’s listed on each individual product page (i.e. I select size and quantity in the form)

am using yab_shop 0.6.1

Last edited by nardo (2009-03-21 08:56:23)

Offline

#266 2009-03-22 12:13:54

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi nardo,

does really nothing is appearing in the checkout page or only the property list (size, color, variant) of the products?


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#267 2009-03-22 15:53:41

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: yab_shop (simple textpattern shop with paypal support)

trenc, everything appears – looks great – but no property list

Offline

#268 2009-03-23 22:08:49

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: yab_shop (simple textpattern shop with paypal support)

Hi trenc,

Hope you don’t mind but here’re some more items you might like to add to your non-urgent “to do” list:

  1. Escape output: for example a colour “Black & White” is output in the select list without the “&” being escaped (&amp;)
  2. default message for affirmation_mail_pre_products is ‘You has ordered the following:’ – it should be ‘You have ordered the following:’
  3. In the email sent to the customer, perhaps some tidying up?
    • postcode/city doesn’t match the checkout order (now that you’ve separated the two)
    • remove the “———————————-” line after the Total?
    • make the “=============” lines the same length as the “———————————-” lines (would make the email printout much neater)

Cheers,

Adi

P.S. Did you get that email I sent you?

Offline

#269 2009-03-24 17:54:11

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi nardo,
I’ve read your first message:

I have one custom field, but it’s not showing in the checkout form … should it appear by default?

If is your custom field the field with the price, so only the price will be displayed. All other product properties you have to set in the config and in the txp preferences for the custom fields (similar to price, it’s explained in the config help).
If all is set, so the property list will be displayed.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#270 2009-03-24 19:01:33

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

gomedia wrote:

  1. Escape output: for example a colour “Black & White” is output in the select list without the “&” being escaped (&amp;)
  2. default message for affirmation_mail_pre_products is ‘You has ordered the following:’ – it should be ‘You have ordered the following:’
  3. In the email sent to the customer, perhaps some tidying up?

    • postcode/city doesn’t match the checkout order (now that you’ve separated the two)
    • remove the “———————————-” line after the Total?
    • make the “=============” lines the same length as the “———————————-” lines (would make the email printout much neater)


Thanks for the feedback. It’s marked on list, except:

The extra line after the total shows that is the endsum. I think two same lines for different sums will break the semantic.
The lines have the same lengths. Both are 72 characters long, so they will not linebreak on terminals if you read your mails with mutt or pine. The length of each character is depending on your font for displaying the mail content. I prefer/recommend a monospaced font (so you are able to read funny ascii art mails :P).

P.S. Did you get that email I sent you?

Yes and I’ve answered you today. :)

trenc


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

Board footer

Powered by FluxBB