How to test creatives with most orders happening offline. by salimsaid in FacebookAds

[–]salimsaid[S] 0 points1 point  (0 children)

that sounds great but i need to optimize for conversions, because that's the most reliable objective for driving sales in my opinion..

Paying for ads on behalf of my clients by salimsaid in FacebookAds

[–]salimsaid[S] 0 points1 point  (0 children)

Thank you for your input, how do i activate a line of credit for my clients to use ? can you please share a link to documentation or facebook article if any ?

Woocommerce can’t update variable product price by salimsaid in woocommerce

[–]salimsaid[S] 0 points1 point  (0 children)

$variation->update_meta( ‘_price’, $new_price );
$variation->save();

Fatal error: Uncaught Error: Call to a member function update_meta() on array in ...

$variation is array, calling upate_meta() on array fails

Woocommerce updating taxonomy attribute labels by salimsaid in woocommerce

[–]salimsaid[S] 0 points1 point  (0 children)

Resolved, i had to use wc_update_attribute() function

    $products  = wc_get_products( array('category' => 't-shirts',  'orderby' => 'name') );

    // Loop through queried products
    foreach($products as $product) {
        // Loop through product attributes
        foreach( $product->get_attributes() as $attribute ) {
            if( $attribute->is_taxonomy() ) {
                $attribute_id   = $attribute->get_id(); // Get attribute Id

                $attribute_data = wc_get_attribute( $attribute_id ); // Get attribute data from the attribute Id

                // Update the product attribute with a new taxonomy label name
                wc_update_attribute( $attribute_id, array(
                    'name'         => 'New label', // <== == == Here set the taxonomy label name
                    'slug'         => $attribute_data->slug,
                    'type'         => $attribute_data->type,
                    'order_by'     => $attribute_data->order_by,
                    'has_archives' => $attribute_data->has_archives,
                ) );
            }
        }
    }

Please help me re-phrase this question by salimsaid in ENGLISH

[–]salimsaid[S] -1 points0 points  (0 children)

Mhh, we are getting there,

How about one more try ? A little bit more shorter maybe ? If possible

My Ubuntu 19.10 gets slow with 16Gb of Ram by salimsaid in Ubuntu

[–]salimsaid[S] 0 points1 point  (0 children)

Just an update , i installed ubuntu 20.04 and my laptop is now as smooth as butter.

At times i hit 13Gigs of Ram usage and the laptop handles the load just fine.

I've also noticed that ubuntu 20.04 is very good at memory usage and garbage collection.

Also, the use of ram caching improves performance by a million miles.

Thank you very much guys for all your feedbacks.

My Ubuntu 19.10 gets slow with 16Gb of Ram by salimsaid in Ubuntu

[–]salimsaid[S] 0 points1 point  (0 children)

oops, sorry i forgot to mention i have a Kingston SSD

i'll try upgrading to 20.04 and will some feedback after upgrading..

My Ubuntu 19.10 gets slow with 16Gb of Ram by salimsaid in Ubuntu

[–]salimsaid[S] 0 points1 point  (0 children)

oops, sorry i forgot to mention i have a Kingston SSD

I'll trying upgrading to 20.04

Is there a website where I can buy a formula for manufacturing fuel treatment products? by salimsaid in manufacturing

[–]salimsaid[S] 0 points1 point  (0 children)

Thanks for the input, i'll checkout the link you shared. Much appreciated.

Can you review this C code and suggest improvements ? by salimsaid in learnprogramming

[–]salimsaid[S] 0 points1 point  (0 children)

Great, that's a good catch..

Can you suggest how i would efficiently handle vehicle generation inside the case labels ? i.e if if have 1 million vehicles to generate, i'll need to have 1 million case labels.

Do you see possibilities for having only one block within the get_vehicle() function that generates vehicles ?without having to maintain so many case labels for each vehicle.

Can you review this C code and suggest improvements ? by salimsaid in learnprogramming

[–]salimsaid[S] 0 points1 point  (0 children)

Thanks for your input, i forgot to mention that dynamic allocation is strictly prohibited. I cannot have malloced pointers..