Posts by PixelStores

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Bank transfer on time :)

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Silly me, i managed to resolve this by adding the get variable to the selection function,

echo '<option value="' . esc_attr( $id ) . '" ' . selected( $_GET['perpage'], $id, false ) . '>' . esc_attr( $name ) . '</option>';

Cheers guys.

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

@themethoft

Thankyou for your response :)

I’m aware of stackoverflow but unfortunately in the past i haven’t had that much success in the problem solving and providing a solution, in fact the last question i asked i had a pretty much “google it” response and other responses where they had no idea only clearly wanted to boost there reputation. I brought this to there attention with the friendliest of manners and he simply curst me and left a negative rating on my question and deleted his comment leaving me a sitting duck.

Maybe its just me but i find ThemeForest a much more friendlier place and an excellent place to ask coding related questions.

@ Australia + bherbert,

Yep the selected function doesn’t seem to output correctly, i’m not sure if i have set it up right.

Thanks

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Hi There,

I’m producing a select box in PHP but having a hard time to get the correct selection “selected” from what the user has chosen.

<form class="products-perpage" method="get">
    <select name="perpage" class="perpage">
        <?php
            $products_perpage =  array(
                '6' => '6',
                '9' => '9',
                '12' => '12',
                '18' => '18',
                '24' => '24',
            );
            foreach ( $products_perpage as $id => $name )
                echo '<option value="' . esc_attr( $id ) . '" ' . selected( $perpage, $id, false ) . '>' . esc_attr( $name ) . '</option>';
        ?>
    </select>
</form>

The above code outputs the select box with the option values fine and when the user selects an option it is passed in the URL using the method get, so the url would be this if the user has chosen 9.

www.website.com/shop/?perpage=9

The problem is when the user has selected this option it doesn’t show selected. I think i’m almost there but i’m using the selected function incorrectly.

Any pointers that would be great!

Cheers

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says


Hi guys, I’m a skateboarder and I had an ankle sprain on august 18.
...in the future?

Best stay off the board for that day then :D

What got me was the shin digs with the 360 flips.. makes me cringe thinking about them..

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Thankyou all :)

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says
Yay! :) Congratulations!
Behind every great author there is a CAT.. go Wallie :D ..also congrats PixelStores ;)

Lol, Thanks guys :)

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Hi Everyone,

I have a new shiny badge and reached a great milestone. I would like to take this opportunity to thank the Envato team and my customers, also my partner Rose has especially helped in times of need. I never had imagined in my early days of web development that i would make over 100k in revenue online.

Also want to point out my PA, Wallie who has been by my side from day one.

Thankyou :D

360 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 4-5 years
  • New Zealand
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
PixelStores says

Hi Iceman,

There are a couple of plugins or extensions that may interest you for the shopping cart plugin, WooCommerce.

Many ecommerce themes have a catalog mode where prices, add to cart buttons, cart e.t.c can be removed and you could offer a product enquiry form.

http://www.woothemes.com/products/product-enquiry-form/
http://wordpress.org/plugins/woocommerce-email-inquiry-cart-options/

May not be exactly what your after but i’m sure you could tweak a little.

Matt

by
by
by
by
by
by