inveritas
-
Posts
68 -
Joined
-
Last visited
Posts posted by inveritas
-
-
Is there such a contribution?
Camcorder: 100$
Case: 15$
Memory: 30$
Normally this would cost 145$
BUT if you buy these now in one (premade in admin) package, it is only 109$
Admin could look like this:
1.
Drag list of products from left to right
2.
Name the package deal
3.
Price
4.
Save to category
5.
preview
6.
save
Ideally it would show all individual items on the orderform.
Any ideas? If i had the skillz I'd give it a shot, or is it there already?
If you buy x different items, say a certain package deal:
-
Hi,
We encounter a problem with use of MSP and the delivery address, which remains empty.
One of our add-ons is the splitting of number and street, for which we added these lines in the script checkout_process.php, as well as in modules/payment/multisafepay.php:
lines ~96-98'delivery_street_only' => $order->delivery['street_only'],
'delivery_street_no' => $order->delivery['street_no'],
'delivery_street_no_add' => $order->delivery['street_no_add'],
I also read you could add this
$order->delivery['format_id']=1; // set this hardcoded om fouten in afleveradres bij verschillende payment processorsabove these lines
$sql_data_array = array('customers_id' => $customer_id,...
in checkout_process.php
Done that, no dice.
Anybody any tips/tricks?
-
change:
$order_total = $this->cart_info['total_products']['total'];
to:
$order_total = $cart_info['total_products']['total'];
and its solved.
See, i had this good feeling some program wizz such as yourself would be hinted by my snippet, rather than getting inside the script;-)
I'll go try. Thanks.
-
If there's no one out here who can help, its probably just changing 2 lines of code i'm gonna hire on tonight to do the job for 15$ :)
Yeah, this line must be altered to php5 standards:
$order_total = $this->cart_info['total_products']['total'];
-
Hmmmmm....just forget my question, I managed to log in but now I get an error when I try to create a poll:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'Test', 0, 0, '6')' at line 1
insert into phesis_poll_data (pollid,optiontext,optioncount,voteid, language_id) values (, 'Test', 0, 0, '6')
So I guess I'll start looking for the solution to that now :-)
insert into phesis_poll_data (pollid,optiontext,optioncount,voteid, language_id) values ('', 'Test', 0, 0, '6')
That should work.
-
I didn't mate, definitely php 5 prob, didn't have it on php 4.3. my shop is still not functioning, handling sales through mail currently. let me know if you find out how.
I can't believe we're the only ones with this issue. Hundreds if not thousands of ppl are using this contribution.
-
Hi there,
Since a few days i'm getting the following error in my checkout_confirmation.php
Fatal error: Using $this when not in object context in /var/www/vhosts/beauty7.be/httpdocs/includes/classes/discount_coupon.php on line 165
I would really appreciate any help. The weird thing is that it just happened, I didn't change anything or didn't install anything else you know.
I get the same error (most likely php 5.xx vs. 4.xx issue). Did yuo fix this yet and if so, how?
-
Its a pretty simple install. Just install it on those 3 stores. It doesnt require any DB changes so you should be good.
We only have one admin, so that won't work.
-
Any idea how we could get this to work for multi store contribution?
-
Does anybody have a solution at hand for the fckeditor add-on that will use pictures from the selected shop?
I tried adding this line in
require('/www/virtual/xxxxxxxx/admin/includes/application_top.php');
connectors/php/config.php
and then
// Path to user files relative to the document root.
$Config['UserFilesPath'] = DIR_FS_CATALOG.'/userfiles/' ;
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = DIR_FS_CATALOG;
-
Before changing from 2.1 to 2.5. Is there an upgrade documentation? Like what changed and what-not?
-
Hi,
I'm trying to setup this contribution and it seems to go okay.
However, i have this extended query that DOES do exactly what it should in phpmyadmin, but the same query does not give any results in my script.
Any idea what i am missing?
select p.products_id, pd.products_name, pd.products_description, p.products_image, p.products_tax_class_id, IF(s.status = '1' AND s.stores_id = '" . STORES_ID . "', s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id and s.stores_id = '" . STORES_ID . "' INNER JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id where p2s.stores_id = '" . STORES_ID . "' and p.products_id = pd.products_id and products_status = '1' AND pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS;
-
Ok, my last reply as it looks like it is fixed.
I added "userfiles/" to my path in the config.php and all seems to be fine now. Not sure i totally understand how it works, but it seems cool!
-
I found my 'new' directories;)
Looks like the script created a new images directory in the root (which means i have a wrong path somewhere).
I'll go back and look for the faulty path.
-
No you do need to create 'userfiles' directory in your catalog root, however its not needed for images for the reason I stated before.
Images are uploaded to the images directory from your pc when you select 'upload' if you select 'browse server' you should find you are looking at your images directory in your root, is that the case with you?
No i do, or no i do not? ;)
Not sure where my images are uploaded, i created a new dir too but i do not see where it added that, lol.
When i select the browse option, i only see "/" on top with my just uploaded 2 pictures, not ALL pics in the images dir, so i am sure it is not the right directory.
<p>d grt grt ghr tr g tr y<img align="right" alt="" src="/internet/nds/ultrawired.eu/../images/hori.jpg" /></p> <p><img height="150" width="120" align="left" alt="" src="/internet/nds/ultrawired.eu/../images/ds.jpg" />gty rtgy rty ty r drse thtr ytr hrfs hetr yh</p>
The above is what my test produced.
-
Just to make sure, /userfiles/ is a fictional name right? Or do we have to create a directory called just that?
Secondly, if FCK 'places' media files somewhere when adding content, this would obviously explain why we're not seeing anything either as these are existing items.
TY.
-
Yes I did.
I understand this should take care of it:
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . '../images/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'../images/' ;
-
FCK will show any images that are part of the description, if your talking about the seperate product image you can see that too.
this is the code I added to categories ages ago:
<tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main" colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_info_image($pInfo->products_image, $pInfo->products_name, '150', '') . '<br />'; echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . '<br />'; echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image'); $text = 'Select large image for zoom function if required. Image Normally Displayed at: ' . SMALL_IMAGE_WIDTH . 'px wide'; if (tep_not_null(SMALL_IMAGE_HEIGHT)) {$text .= ', ' . SMALL_IMAGE_HEIGHT . ' high.';} echo tep_display_block ($text); echo '<br />' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> </tr>
I will be adding the option to select that image with FCK as well in time.
;)
Hmm, we're not talking about the same pics I guess.
When i click on a picture inside the description, broken image, link to image = images/dt2.jpg
In theory, this will show up in our store (which it does) just well, as it would be
www.url.com/images/dt2.jpg
However, from the admin, this is now:
www.url.com/admin/images/dt2.jpg
Which will obviously not show any items.
Am I correct, or should i add a new item to see how that plays out? Right now I only looked at existing items.
-
If only we could see the actual images we uploaded in the descriptions, that'd be golden ;)
Not sure this is possible though, as all images are in
root/images
The description will say
images/bla.gif
But to show in admin it should (and ONLY there) change it for the time being to
../images/bla.gif
-
Yup, that was it ;)
Sorry for the time i took from your life, you'll never get it back ;)
-
What's the error? I guess from your comments no display?
Have you tried with different browsers? Does firefox report any script errors?
It looks just like nothing happens but the old editor. I tried adding some echo's in the script to make sure we're editing the right files, that worked.
Let me go try FF ..... Nope, nothing either. I must be doing something silly.
I added the wysiwyg contribution the other day but that screwed up all contents by making entire html pages in the description that we could not edit back ;) However, that did appear immediately, so js isn't the issue here.
Ok, hold on ... ;)
I tried looking for the amount of tep_draw_textarea_field instances in categories. Seems like we have more than one (due to other contribs). Let's go chnge th eothers too and i will report back.
-
Weird stuff, I consider myself advanced level, yet cannot get this simpleton to work ....
Followed the install file, added this in categories.php:
<!--START EDITED FOR FCKEDIT <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td> --> <td class="main"><?php echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','300',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td> <!--END EDITED FOR FCKEDIT -->
In html_output
On top:
require("fckeditor/fckeditor.php");
Added later in the file:
// Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text='') { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'fckeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; }
Also changed some code in the configure.php inside the fck dirs. Nothing big, just what is being recommended.
Weird stuff, any tips left? I already tried that other bit of code you gave the guy on page 2 (?).
-
Ugh, nevermind.
-
Are you sure you followed it all?
The install adds a new function to html_output.php called tep_draw_fckeditor
then where ever you want to use the editor, you call that function, the install gives examples for categories.php and mail.php but the rule is simply where you have the call tep_draw_textarea_field you replace with tep_draw_fckeditor remebering to change the parameters sent to suit
those are tep_draw_fckeditor ( forms_referance_id, width_of_window, height_of_window, existing_file_for_edit )
Hope that makes things clearer.
B)
I feel like an idiot.
I downloaded the latest version from fckeditor.net but i see no install of any kind.
_samples/default.html works just fine.
Am i missing some installer for osC?
[Contribution] Discount Coupon Codes
in General Add-Ons Support
Posted
Probably.
includes/classes/discount_coupon.php