I am searching to display product manufacturer detail in checkout page for Oscommerce.
Anyone can help me how to fix this issue?
Finally i got solution friends, go to /includes/classes/order.php, in that file check below line
'id' => $products[$i]['id']);
replace with
'id' => $products[$i]['id'],
'manufacturer' => $products[$i]['manufacturer']);
then add $order->products[$i]['manufacturer'] in checkout.php file or any where in checkout file
Related
There are two modules: Customer & Top Transaction
Relationship between them: 1(Customer):Many(Top Transaction)
There is one 'Flex Relate' field in Top Transaction module.
Now I want to display that 'Flex Relate' value on sub panel list of Top Transaction module.
For that I did changes from studio->Customer->Sub-Panel->Top Transaction.
On Customer detail page under Top Transaction sub panel it's showing only header of 'Flex Relate' field & no value(values are blank).
Does anyone know solution to this?
I'm using 6.5 community edition.
Please check this link for flex relate Flex relate
Try to use relate field instead of flex related i think it will solve your problem .
I know, this is the old question, but here is the solution I have found.
Add these 2 fields in the subpanel metadata and this would show the parent/flex field properly.
However there is still an issue in that, here the target module is fixed. I will update this as soon as I find any solution to it.
Untill that, I think this is achievable in process_record hook. But, I am looking for some generic solution.
'parent_type' =>
array(
'usage' => 'query_only',
),
'parent_name' =>
array(
'width' => '10%',
'vname' => 'LBL_FLEX_RELATE',
'id' => 'parent_id',
'link' => true,
'widget_class' => 'SubPanelDetailViewLink',
'target_module' => 'AOS_Invoices',
'target_record_key' => 'parent_id',
'default' => false,
),
I'm looking at a request from our customer to either lengthen the autofill or just remove it all together when adding an organisation in EditView.
e.g: https://demo.suiteondemand.com/index.php?module=Opportunities&action=EditView&return_module=Opportunities&return_action=DetailView
If you start typing into "Account Name" box 'A' it'll show all the Organisations starting with A but also it'll autofill the first result into the input box.
Is there a way to stop that autofill of the input box from happening or delay it?
Thanks
Edit: changed title to SuiteCRM
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Quicksearch/
I used the Metadata example, and it worked.
[Edit]
To expand on the answer. If you want to remove autofill from any of the boxes you need to add the 'sqsNoAutofill' to achieve this you can do the following:
In a modules editviewdefs.php (e.g. modules/(module)/metadata/editviewdefs.php) locate the name of the input you wish to change e.g:
array (
'name' => 'assigned_user_name',
'label' => 'LBL_ASSIGNED_TO',
),
then add the following:
array (
'name' => 'assigned_user_name',
'label' => 'LBL_ASSIGNED_TO',
'displayParams' => array (
'class' => 'sqsEnabled sqsNoAutofill'
)
),
This will stop an input box with a quicksearch drop down from autofilling.
You can also make the change to the SugarField for Parent
include/SugarFields/Fields/Parent/EditView.tpl (line 51):
<input type="text" .... class="sqsEnabled sqsNoAutofill" .....>
I hope that helps someone else.
On my Wordpress site, I have the main blog entry page, then I have two sub blog pages. I would like to know if there is a way so that whenever authors submit a post to the main page, that same post is also posted in one of the sub blog pages. I would think that there is a plugin to do this sort of thing. The closest I have come to is this plugin, http://wordpress.org/plugins/duplicate-post/ but it does not seem that this one automates the process.
I may just edit that plugin to do it automatically, but I would like to at least try and see if there is one already out there. Ideally, I would like the plugin to have a selection of which page the blog should be added to on the edit page. Something like Add this post to Blog Page 1 or Blog Page 2 with check boxes by either page. Thanks in advance for any help.
You say you have 2 sub blog pages in which you want to have the option to display any posts taht are submited by authors. I'm thinking at a custom post meta that you can use to filter posts in the sub blog pages this way if the author wants to place the post in blog page 1 it will set the postmeta to blog1 if he wants it in blog page 2 it will set the postmeta to blog2, all you'll have to do then is to filter the posts to include postmeta blog1 in blog page 1 and blog2 in blog page 2.
something like:
$args = array('meta_query' => array(
array(
'key' => 'blogPage',
'value' => 'blog1',
'compare' => '=',
'type' => 'text'
)) // for blog page 1
and
$args = array('meta_query' => array(
array(
'key' => 'blogPage',
'value' => 'blog2',
'compare' => '=',
'type' => 'text'
)) // for blog page 2
This is for SugarCRM v6.3
I need to add a "More Info" icon to the History subpanel, which, when moused-over, displays the relevant module's Description field, similar to how the More Info icon works in the Accounts ListView.
For starters I added new "History/metadata" folders to custom/modules/ and copied the subpaneldefs.php file from the core History/metadata folder.
In the subpaneldefs file, at the end of each of the module's column definitions, I added this as a test:
array ( 'customCode' => '<img src="themes/Sugar/images/info_inline.png"></img>', ),
That didn't seem to affect anything at all.
Not sure if it was just that I needed more than an image for the column to show, I then tried adding all of the code I thought was supposed to go there:
array (
'name' => 'nothing',
'module' => 'Notes',
'related_fields' => array ('id'),
'customCode' => '<a id="adspan_{$ID}" href="index.php?module=Notes&action=DetailView&record={$ID}" onmouseover="return SUGAR.util.getAdditionalDetails(\'Notes\',\'{$ID}\',\'adspan_{$ID}\');" onmouseout="return SUGAR.util.clearAdditionalDetailsCall()"><img src="themes/Sugar/images/info_inline.png"></img></a>'
),
This is, as you can see, intended for the Notes in the History subpanel, and I changed it accordingly for each of the other modules' column definitions in the subpaneldefs.php file. I modeled the code after some custom code I found that someone else here at work did for a dashlet, which shows details when an account name is moused over.
Unfortunately, that didn't work, either.
How do I accomplish this?
The only way to do this is by defining a new SugarWidget field for the field in question. Here's a good guide I found for it:
http://www.mediaart.lt/programming/sugarcrm-adding-custom-field-in-subpanel/
We use a customized installation of SugarCRM and I need to make a change to the "Convert Lead to Contact" form. On the form, only "last name" is marked as required, but if the user does not enter a salutation or first name, Sugar will throw an SQL error on the insert (because salutation and first name are required fields for contacts).
I've tried adding this line to "modules/Contacts/metadata/editviewdefs.php" and "modules/Contacts/metadata/quickcreatedefs.php":
array (
'name' => 'first_name',
'displayParams'=>array('required'=>true),
)
I'm trying other modifications but I can't find anything online yet on this exact problem. I will update this question with my findings. Thanks!
Update: Added "first_name" and "salutation" to the 'required_fields' array in "modules/Contacts/field_arrays.php", did not help.
Update: This is on SugarCRM 5.1. This work is happening during the upgrade to 5.1.
Update: Added the following line to "modules/Contacts/vardefs.php" the "email_and_name1" array, did not help.
'required' => 'true',
The above didn't work for me. I am using 5.2.0.
What worked for me was to edit custom/modules/{modulename}/metadata/editviewdefs.php and add:
'name' => 'first_name',
'displayParams' =>
array (
'required' => true,
),
Then quick repair/rebuild.
I appear to have figured out a solution. I created an upgrade file in "custom/Extension/modules/Contacts/Ext/Vardefs" called "custom.php". The contents of the file are below:
<?php
$dictionary['Contact']['fields']['salutation']['required'] = true;
$dictionary['Contact']['fields']['first_name']['required'] = true;
?>
After I did a "quick repair and rebuild", the salutation and first name were now required. This works for me.
Why not just make Fist Name and Salutation required fields in Leads? Then you can modify the fields to "required" right in Studio and not have to worry about upgrade security.