gfxpixeldesigns's Profile
Reputation: 1
Neutral
- Group:
- Members
- Active Posts:
- 490 (0.29 per day)
- Joined:
- 29-October 07
- Profile Views:
- 8,649
- Last Active:
Apr 07 2012 12:25 PM- Currently:
- Offline
My Information
- Member Title:
- Advanced Member
- Age:
- 21 years old
- Birthday:
- October 20, 1990
- Gender:
-
Male
- Location:
- United Kingdom, Mossley
- Interests:
-
Graphic Design
Web Design
Mountain Biking
Video Games : ps3 id = DrkDeath5000
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
drkdeath@hotmail.co.uk
- Website URL:
-
http://www.gfxpixeldesigns.com
Users Experience
- Experience:
- Intermediate
- Area of Expertise:
- Designer/Coder
Latest Visitors
-
Renaissance-D... 
26 Oct 2011 - 12:17 -
Guest
17 Jun 2011 - 15:06 -
Ben 
02 Feb 2011 - 20:21 -
Platinum_Nutr... 
31 Jan 2011 - 08:48 -
admin-jag 
06 Jan 2011 - 11:14
Topics I've Started
-
PHP coder required for calculation [REMOTE]
07 April 2012 - 10:48 AM
Country:
Not particularly fussed where your based, anywhere is fine.
Scope:
I require a small php mod for magento (ecommerce) which will involve changing the tier pricing display. By default magento outputs each tier pricing as 'Buy 1 for x amount', i would be looking to change this to 'Buy 1 - t for x amount'. Where 't' would be calculated from the first number in the column below minus 1.
To better explain i will be having approx 5 tiers per product so for example:
Buy 1-t for x amount
Buy 10-t for x amount
Buy 20-t for x amount
Buy 50-t for x amount
Buy 100-t for x amount
So from the above example the first t would be calculated from the first number in the column below 10 - 1 = 9. The second t would be the same again 20 - 1 = 19. So basically all t's are calculated from the first number in the column below. Just to confirm the third t would be 50 - 1 which is 49.
Just incase the t's and x's confuse you heres an example with real figures / amounts:
Buy 1-9 for £3.89
Buy 10-19 for £3.32
Buy 20-49 for £2.99
Buy 50-99 for £2.39
Buy 100-199 for £2.00
Note that these numbers will differ with every product.
Also note that these figures are already being calculated by magento with the exception of the 't'.
Now for the fun part ... i've already had a good go at this myself and i'm very close but my php knowledge just isnt sufficent and i've had to give up.
This is the code snippet i've been working with.
<?php $_next = $_tierPrices[$index + 1]; $_qty = $_next['price_qty'] - 1; if($_qty > 0) $_format = 'Buy %1$s-' . $_qty . ' for %2$s each'; echo $this->__($_format, $_price['price_qty'], $_price['formated_price']); ?>
The problem with the above is it only works for the first column so all t's end up being identical. I'm not sure if this is a limitation of $index + 1 or if its just a case of it needing to be put into a loop.
So if anyone is interested in taking this on i would be hiring you to either finish the code above or start from scratch.
I've uploaded the entire magento code that you would be dealing with tierprices.phtml
The line we're interested in is line #179.
If your familiar with magento the location of this file is
/app/design/frontend/default/default/template/catalog/product/view/tierprices.phtml
Note that knowing magento isnt necessarily needed for this job as its all php but it may help to know the code your dealing with.
Size:
n/a
Time Frame:
I would expect this to be a very quick job for anyone that knows php well so no more than a few hours. However there is no major rush, a week, 2 weeks, a month at the most but again as this is such a simple job i wouldnt think it to take that long.
Budget:
I'm happy to pay £15 per hour and £100 would be my ideal budget for this. If however my budget is off please let me know your quote as chances are i will still be interested.
Existing URL:
http://anodizedwhole...size-large.html
The above url shows the tierprices with my updated code. The code you will be editing will affect the tierpricing on this page.
Features:
All code must be made available to me, no encryption, nothing fancy, im just looking for the basic functionality mentioned above.
Other Features:
n/a
I hope the above all makes sense and i have made everything clear.
If you have any questions please ask away, you can contact me here on wdf by PM or replying directly to this thread. If you prefer you may also email me directly at gfxpixeldesigns@gmail.com
Thanks -
php for each get next array
03 April 2012 - 04:47 PM
I have the following php code which outputs prices and quantities for a set of products. Its running under a foreach.
<?php echo $this->__('Buy %1$s - %2$s @ %3$s each', $_price['price_qty'], $_price['price_qty'], $_price['formated_price']) ?>
The above currently outputs something like:
Buy 10 - 10 @ £3.32
Buy 20 - 20 @ £2.99
Buy 50 - 50 @ £2.39
I want the second quantity number to output the first number from the second row and finally take 1 (- 1). So it would look something like.
Buy 10 - 19 @ £3.32
Buy 20 - 49 @ £2.99
Buy 50 - 99 @ £2.39
How would this be done ? I was thinking i could alter my code so it reads the next array although im not sure how to write this correctly.
<?php echo $this->__('Buy %1$s - %2$s @ %3$s each', $_price['price_qty'], next($_price['price_qty']) -1, $_price['formated_price']) ?> -
SQL (phpmyadmin) import CSV with key constraints disabled
20 December 2011 - 08:26 PM
I have a CSV file im trying to import into a database using phpmyadmin (cpanel). The tables have key constraints so need to be disabled in order to import successfully only i dont know how to this with the CSV format. Usually i would be doing this directly through SQL and just adding SET FOREIGN_KEY_CHECKS=0
How can i disable the key constraints using the CSV format ?
Thanks -
Google maps with user defined location
17 October 2011 - 09:37 PM
Hello,
Can anyone advise me on how to implement google maps with a user defined location, in other words a map which would allow the viewer to click and place a marker as their location. I plan to have a contact form which would include the viewers location they mark in google maps. I couldnt find anything in the google examples but i do have a live example here. How has this been done ?
Thanks
Help




Find My Content
Display name history
Comments
gfxpixeldesigns has no profile comments yet. Why not say hello?