wellington.cs
Forum Replies Created
-
Forum: Plugins
In reply to: [Claudio Sanches - PagSeguro for WooCommerce] Split Payment no pagseguro@claudiosanches poderia me informar a classe e o método onde devo adicionar novos parâmetros de envio para o pagseguro (estou procurando mas como vocês desenvolveram pode agilizar meu trabalho).
Obrigado!
Forum: Plugins
In reply to: [Claudio Sanches - PagSeguro for WooCommerce] Split Payment no pagseguroEu estou desenvolvendo esta funcionalidade, caso alguém tenha um inicio já desenvolvido posso finalizar e disponibilizar.
ok, thank’s
I’m solution:
Create new function in my project:
/**
* Returns all FooGallery galleries
*
* @return FooGallery[] array of FooGallery galleries
*/
function foogallery_get_featured_galleries( $slug = ‘default’ ) {
$gallery_posts = get_posts(
array(
‘post_type’ => FOOGALLERY_CPT_GALLERY,
‘post_status’ => ‘any’,
‘cache_results’ => false,
‘nopaging’ => true,
)
);if ( empty( $gallery_posts ) ) {
return false;
}$galleries = array();
foreach ( $gallery_posts as $post ) {
$meta_values = get_post_meta( $post->ID, ‘foogallery_settings’, true );
if ( $slug == $meta_values[‘oneimage_featured_slug’] )
$galleries[] = FooGallery::get( $post );
else if ( $slug == ‘default’ )
$galleries[] = FooGallery::get( $post );
}return $galleries;
}Slug is propriety on select gallery show homepage;
Example:
http://noticias.carsale.uol.com.br/salao-sao-paulo/Ola, você conseguiu a solução estou com o mesmo problema?
Hello, you got the solution I am having the same problem?